1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/pkgs/tools/misc/vimpager/build.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

40 lines
697 B
Nix

{ stdenv
, fetchFromGitHub
, coreutils
, sharutils
, version
, sha256
}:
stdenv.mkDerivation rec {
inherit version;
pname = "vimpager";
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;
};
}