vimpager: Init at 2.06 and master (#58580)

* 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
This commit is contained in:
Matthias Beyer 2019-03-30 23:55:12 +01:00 committed by Maximilian Bosch
parent 6ed86cb830
commit 084c8644ff
4 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{ 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;
};
}

View File

@ -0,0 +1,6 @@
{ callPackage }:
callPackage ./build.nix {
version = "2.06";
sha256 = "05yr7j72bw64nx7a0y6w9fjmz54zd4g46fn1qjfbbqvbc19fjpl8";
}

View File

@ -0,0 +1,7 @@
{ callPackage }:
callPackage ./build.nix {
version = "a4da4dfac44d1bbc6986c5c76fea45a60ebdd8e5";
sha256 = "0gcjpw2q263hh8w2sjvq3f3k2d28qpkkv0jnl8hw1l7v604i8zxg";
}

View File

@ -6135,6 +6135,9 @@ in
vimer = callPackage ../tools/misc/vimer { };
vimpager = callPackage ../tools/misc/vimpager { };
vimpager-latest = callPackage ../tools/misc/vimpager/latest.nix { };
visidata = (newScope python3Packages) ../applications/misc/visidata {
};