diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-06-26 23:46:01 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-06-26 23:58:14 -0300 |
commit | 99a4c03e774afb7beadca9e399e49afa48233afb (patch) | |
tree | d78e3953298bb2fcc79dc565106cf34a5daf9fa6 /pkgs/applications/file-managers | |
parent | 20acab1b9b83bd534b5a311fbb1136b7f737fc47 (diff) |
ytree: move to applications/file-managers
Diffstat (limited to 'pkgs/applications/file-managers')
-rw-r--r-- | pkgs/applications/file-managers/ytree/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/file-managers/ytree/default.nix b/pkgs/applications/file-managers/ytree/default.nix new file mode 100644 index 0000000000000..fcfbdbd10da1b --- /dev/null +++ b/pkgs/applications/file-managers/ytree/default.nix @@ -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 |