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
52
pkgs/tools/misc/nvimpager/default.nix
Normal file
52
pkgs/tools/misc/nvimpager/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ fetchFromGitHub
|
||||
, lib, stdenv
|
||||
, ncurses, neovim, procps
|
||||
, scdoc, lua51Packages, util-linux
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nvimpager";
|
||||
version = "0.10.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lucc";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-0guSL4RvYQFwok7zGuevhQY6DHjnETRLpEIEQfGslcg=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
ncurses # for tput
|
||||
procps # for nvim_get_proc() which uses ps(1)
|
||||
];
|
||||
nativeBuildInputs = [ scdoc ];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
buildFlags = [ "nvimpager.configured" "nvimpager.1" ];
|
||||
preBuild = ''
|
||||
patchShebangs nvimpager
|
||||
substituteInPlace nvimpager --replace ':-nvim' ':-${neovim}/bin/nvim'
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [ lua51Packages.busted util-linux neovim ];
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
script -c "busted --lpath './?.lua' test"
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "Use neovim as pager";
|
||||
longDescription = ''
|
||||
Use neovim as a pager to view manpages, diffs, etc with nvim's syntax
|
||||
highlighting. Includes a cat mode to print highlighted files to stdout
|
||||
and a ansi esc mode to highlight ansi escape sequences in neovim.
|
||||
'';
|
||||
homepage = "https://github.com/lucc/nvimpager";
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.lucc ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue