uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
41
pkgs/tools/misc/vimpager/build.nix
Normal file
41
pkgs/tools/misc/vimpager/build.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, coreutils
|
||||
, sharutils
|
||||
, runtimeShell
|
||||
, version
|
||||
, sha256
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
inherit version;
|
||||
pname = "vimpager";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit sha256;
|
||||
|
||||
owner = "rkitover";
|
||||
repo = "vimpager";
|
||||
rev = version;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ sharutils ]; # for uuencode
|
||||
buildInputs = [ coreutils ];
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)"
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
sed -i 's,/bin/cat,${coreutils}/bin/cat,g' vimpager
|
||||
make
|
||||
'';
|
||||
|
||||
|
||||
meta = with 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";
|
||||
}
|
||||
10
pkgs/tools/misc/vimpager/latest.nix
Normal file
10
pkgs/tools/misc/vimpager/latest.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ callPackage, runtimeShell }:
|
||||
|
||||
(callPackage ./build.nix {
|
||||
version = "a4da4dfac44d1bbc6986c5c76fea45a60ebdd8e5";
|
||||
sha256 = "0gcjpw2q263hh8w2sjvq3f3k2d28qpkkv0jnl8hw1l7v604i8zxg";
|
||||
}).overrideAttrs (old: {
|
||||
postPatch = old.postPatch or "" + ''
|
||||
echo 'echo ${runtimeShell}' > scripts/find_shell
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue