mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
084c8644ff
* vimpager: Init at 2.06 and master Adding a package vimpager-latest because the last release was 2015. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> * fixup! vimpager: Init at 2.06 and master
40 lines
707 B
Nix
40 lines
707 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, coreutils
|
|
, sharutils
|
|
, version
|
|
, sha256
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
inherit version;
|
|
name = "vimpager-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
inherit sha256;
|
|
|
|
owner = "rkitover";
|
|
repo = "vimpager";
|
|
rev = "${version}";
|
|
};
|
|
|
|
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";
|
|
homepage = "https://www.vim.org/scripts/script.php?script_id = 1723";
|
|
license = with licenses; [ bsd2 mit vim ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|