summary refs log tree commit diff
path: root/pkgs/applications/file-managers/ytree
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-06-26 23:46:01 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-06-26 23:58:14 -0300
commit99a4c03e774afb7beadca9e399e49afa48233afb (patch)
treed78e3953298bb2fcc79dc565106cf34a5daf9fa6 /pkgs/applications/file-managers/ytree
parent20acab1b9b83bd534b5a311fbb1136b7f737fc47 (diff)
downloadnixpkgs-99a4c03e774afb7beadca9e399e49afa48233afb.tar
nixpkgs-99a4c03e774afb7beadca9e399e49afa48233afb.tar.gz
nixpkgs-99a4c03e774afb7beadca9e399e49afa48233afb.tar.bz2
nixpkgs-99a4c03e774afb7beadca9e399e49afa48233afb.tar.lz
nixpkgs-99a4c03e774afb7beadca9e399e49afa48233afb.tar.xz
nixpkgs-99a4c03e774afb7beadca9e399e49afa48233afb.tar.zst
nixpkgs-99a4c03e774afb7beadca9e399e49afa48233afb.zip
ytree: move to applications/file-managers
Diffstat (limited to 'pkgs/applications/file-managers/ytree')
-rw-r--r--pkgs/applications/file-managers/ytree/default.nix40
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 00000000000..fcfbdbd10da
--- /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