default.nix (715B)
1 { lib, stdenv, fetchFromGitHub }: 2 3 stdenv.mkDerivation (finalAttrs: { 4 pname = "nextvi"; 5 version = "0-unstable-2024-02-18"; 6 7 src = fetchFromGitHub { 8 owner = "kyx0r"; 9 repo = "nextvi"; 10 rev = "31c890ef8adb0e729249ea818c283bf143b98e84"; 11 hash = "sha256-fo0k3zN+werG4WnhYwj9taWNstB8ypVknWagtYUWiHs="; 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 (finalAttrs.src.meta) homepage; 27 license = licenses.mit; 28 platforms = platforms.unix; 29 maintainers = [ maintainers.sikmir ]; 30 }; 31 })