mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
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:
parent
6ed86cb830
commit
084c8644ff
39
pkgs/tools/misc/vimpager/build.nix
Normal file
39
pkgs/tools/misc/vimpager/build.nix
Normal 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;
|
||||
};
|
||||
}
|
6
pkgs/tools/misc/vimpager/default.nix
Normal file
6
pkgs/tools/misc/vimpager/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ callPackage }:
|
||||
|
||||
callPackage ./build.nix {
|
||||
version = "2.06";
|
||||
sha256 = "05yr7j72bw64nx7a0y6w9fjmz54zd4g46fn1qjfbbqvbc19fjpl8";
|
||||
}
|
7
pkgs/tools/misc/vimpager/latest.nix
Normal file
7
pkgs/tools/misc/vimpager/latest.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ callPackage }:
|
||||
|
||||
callPackage ./build.nix {
|
||||
version = "a4da4dfac44d1bbc6986c5c76fea45a60ebdd8e5";
|
||||
sha256 = "0gcjpw2q263hh8w2sjvq3f3k2d28qpkkv0jnl8hw1l7v604i8zxg";
|
||||
}
|
||||
|
|
@ -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 {
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue