2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-06-23 20:20:29 +01:00
|
|
|
, fetchurl
|
|
|
|
, ncurses
|
|
|
|
, readline
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ytree";
|
2021-01-04 23:32:02 +00:00
|
|
|
version = "2.03";
|
2020-06-23 20:20:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://han.de/~werner/${pname}-${version}.tar.gz";
|
2021-01-04 23:32:02 +00:00
|
|
|
sha256 = "sha256-WDqnFVLRNH4Oq+OaI2+loXS/Z93piHGFO5/iojO8rvE=";
|
2020-06-23 20:20:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-01-04 23:32:02 +00:00
|
|
|
ncurses
|
|
|
|
readline
|
2020-06-23 20:20:29 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-23 20:20:29 +01:00
|
|
|
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
|