nextvi: init at 2.1 (#457879)

This commit is contained in:
Sandro
2025-11-10 22:34:34 +00:00
committed by GitHub
+48
View File
@@ -0,0 +1,48 @@
{
lib,
stdenv,
fetchFromGitHub,
installShellFiles,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nextvi";
version = "2.1";
src = fetchFromGitHub {
owner = "kyx0r";
repo = "nextvi";
tag = finalAttrs.version;
hash = "sha256-FBUcmCkGOf7HVLkZqHWxHxS0qhz5t9VwbWb0VOGnb28=";
};
nativeBuildInputs = [ installShellFiles ];
buildPhase = ''
runHook preBuild
sh ./cbuild.sh
runHook postBuild
'';
installPhase = ''
runHook preInstall
PREFIX=$out sh ./cbuild.sh install
mv $out/bin/{vi,nextvi}
installManPage --name nextvi.1 vi.1
runHook postInstall
'';
meta = {
description = "Next version of neatvi (a small vi/ex editor)";
homepage = "https://github.com/kyx0r/nextvi";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.sikmir ];
mainProgram = "nextvi";
};
})