nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (779B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5 }:
      6 
      7 stdenv.mkDerivation (finalAttrs: {
      8   pname = "nextvi";
      9   version = "0-unstable-2024-09-04";
     10 
     11   src = fetchFromGitHub {
     12     owner = "kyx0r";
     13     repo = "nextvi";
     14     rev = "1f247f352ed430a6fa82b7853a11e25523ca78a5";
     15     hash = "sha256-Ah/I+/0LoAuku0TyymZP9sfIGcpkPJaLyDMI741zukA=";
     16   };
     17 
     18   buildPhase = ''
     19     runHook preBuild
     20     sh ./cbuild.sh
     21     runHook postBuild
     22   '';
     23 
     24   installPhase = ''
     25     runHook preInstall
     26     PREFIX=$out sh ./cbuild.sh install
     27     runHook postInstall
     28   '';
     29 
     30   meta = {
     31     description = "Next version of neatvi (a small vi/ex editor)";
     32     homepage = "https://github.com/kyx0r/nextvi";
     33     license = lib.licenses.mit;
     34     platforms = lib.platforms.unix;
     35     maintainers = [ lib.maintainers.sikmir ];
     36   };
     37 })