nur-packages

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

default.nix (683B)


      1 { lib, stdenv, fetchFromGitHub }:
      2 
      3 stdenv.mkDerivation rec {
      4   pname = "nextvi";
      5   version = "2022-09-05";
      6 
      7   src = fetchFromGitHub {
      8     owner = "kyx0r";
      9     repo = "nextvi";
     10     rev = "5ccc9f3a18be9d78a72a91c432ab3aac50c69647";
     11     hash = "sha256-GqTN6kbBVksh1uXUTGs2unyl2GXlz+Vogqr0kLcIgGs=";
     12   };
     13 
     14   buildPhase = ''
     15     runHook preBuild
     16     sh ./build.sh
     17     runHook postBuild
     18   '';
     19 
     20   installPhase = ''
     21     PREFIX=$out sh ./build.sh install
     22   '';
     23 
     24   meta = with lib; {
     25     description = "Next version of neatvi (a small vi/ex editor)";
     26     inherit (src.meta) homepage;
     27     license = licenses.mit;
     28     platforms = platforms.unix;
     29     maintainers = [ maintainers.sikmir ];
     30   };
     31 }