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
40
pkgs/tools/misc/ytree/default.nix
Normal file
40
pkgs/tools/misc/ytree/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, ncurses
|
||||
, readline
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ytree";
|
||||
version = "2.04";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://han.de/~werner/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-bnqLf2jv5tNlq+M6HQbXOa2F8io9VN3QrsJKNHjWZkI=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
ncurses
|
||||
readline
|
||||
];
|
||||
|
||||
# don't save timestamp, in order to improve reproducibility
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace 'gzip' 'gzip -n'
|
||||
'';
|
||||
|
||||
installFlags = [ "DESTDIR=${placeholder "out"}" ];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/bin $out/share/man/man1
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A curses-based file manager similar to DOS Xtree(TM)";
|
||||
homepage = "https://www.han.de/~werner/ytree.html";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = with platforms; unix;
|
||||
};
|
||||
}
|
||||
# TODO: X11 support
|
||||
Loading…
Add table
Add a link
Reference in a new issue