Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
727 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
coreutils,
sharutils,
version,
sha256,
}:
stdenv.mkDerivation {
inherit version;
pname = "vimpager";
src = fetchFromGitHub {
inherit sha256;
owner = "rkitover";
repo = "vimpager";
rev = version;
};
nativeBuildInputs = [ sharutils ]; # for uuencode
buildInputs = [ coreutils ];
makeFlags = [
"PREFIX=$(out)"
];
buildPhase = ''
sed -i 's,/bin/cat,${coreutils}/bin/cat,g' vimpager
make
'';
meta = with lib; {
description = "Use Vim as PAGER";
homepage = "https://www.vim.org/scripts/script.php?script_id=1723";
license = with licenses; [
bsd2
mit
vim
];
platforms = platforms.unix;
};
}