nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 905 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 installShellFiles, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "nextvi"; 10 version = "3.2"; 11 12 src = fetchFromGitHub { 13 owner = "kyx0r"; 14 repo = "nextvi"; 15 tag = finalAttrs.version; 16 hash = "sha256-tFV0VDMAiD099UBsdf1dC2KKFfUCFmJe4kEb/Z69U10="; 17 }; 18 19 nativeBuildInputs = [ installShellFiles ]; 20 21 buildPhase = '' 22 runHook preBuild 23 24 sh ./cbuild.sh 25 26 runHook postBuild 27 ''; 28 29 installPhase = '' 30 runHook preInstall 31 32 PREFIX=$out sh ./cbuild.sh install 33 34 mv $out/bin/{vi,nextvi} 35 installManPage --name nextvi.1 vi.1 36 37 runHook postInstall 38 ''; 39 40 meta = { 41 description = "Next version of neatvi (a small vi/ex editor)"; 42 homepage = "https://github.com/kyx0r/nextvi"; 43 license = lib.licenses.mit; 44 platforms = lib.platforms.unix; 45 maintainers = [ lib.maintainers.sikmir ]; 46 mainProgram = "nextvi"; 47 }; 48})