Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 45 lines 727 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 coreutils, 6 sharutils, 7 version, 8 sha256, 9}: 10 11stdenv.mkDerivation { 12 inherit version; 13 pname = "vimpager"; 14 15 src = fetchFromGitHub { 16 inherit sha256; 17 18 owner = "rkitover"; 19 repo = "vimpager"; 20 rev = version; 21 }; 22 23 nativeBuildInputs = [ sharutils ]; # for uuencode 24 buildInputs = [ coreutils ]; 25 26 makeFlags = [ 27 "PREFIX=$(out)" 28 ]; 29 30 buildPhase = '' 31 sed -i 's,/bin/cat,${coreutils}/bin/cat,g' vimpager 32 make 33 ''; 34 35 meta = with lib; { 36 description = "Use Vim as PAGER"; 37 homepage = "https://www.vim.org/scripts/script.php?script_id=1723"; 38 license = with licenses; [ 39 bsd2 40 mit 41 vim 42 ]; 43 platforms = platforms.unix; 44 }; 45}