2019-03-30 23:55:12 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, coreutils
|
|
|
|
, sharutils
|
|
|
|
, version
|
|
|
|
, sha256
|
|
|
|
}:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-03-30 23:55:12 +01:00
|
|
|
inherit version;
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "vimpager";
|
2019-03-30 23:55:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit sha256;
|
|
|
|
|
|
|
|
owner = "rkitover";
|
|
|
|
repo = "vimpager";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2019-03-30 23:55:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coreutils sharutils ]; # for uuencode
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
sed -i 's,/bin/cat,${coreutils}/bin/cat,g' vimpager
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Use Vim as PAGER";
|
2019-11-06 19:59:17 +01:00
|
|
|
homepage = "https://www.vim.org/scripts/script.php?script_id=1723";
|
2019-03-30 23:55:12 +01:00
|
|
|
license = with licenses; [ bsd2 mit vim ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|