···11+{stdenv, fetchgit, autoreconfHook, halibut}:
22+let
33+ date = "20180522";
44+ rev = "5b12791";
55+in
66+stdenv.mkDerivation {
77+ name = "agedu-${date}.${rev}";
88+ # upstream provides tarballs but it seems they disappear after the next version is released
99+ src = fetchgit {
1010+ url = https://git.tartarus.org/simon/agedu.git;
1111+ inherit rev;
1212+ sha256 = "1zyxif0i3yil4xm8y9aqk6wsdwi7b3jg682lv6ds6a6bl047fz1q";
1313+ };
1414+1515+ nativeBuildInputs = [autoreconfHook halibut];
1616+1717+ meta = with stdenv.lib; {
1818+ description = "A Unix utility for tracking down wasted disk space";
1919+ longDescription = ''
2020+ Most Unix file systems, in their default mode, helpfully record when a
2121+ file was last accessed. So if you generated a large amount of data years
2222+ ago, forgot to clean it up, and have never used it since, then it ought
2323+ in principle to be possible to use those last-access time stamps to tell
2424+ the difference between that and a large amount of data you're still
2525+ using regularly.
2626+2727+ agedu uses this information to tell you which files waste disk space when
2828+ you haven't used them since a long time.
2929+ '';
3030+ homepage = https://www.chiark.greenend.org.uk/~sgtatham/agedu/;
3131+ license = licenses.mit;
3232+ maintainers = with maintainers; [ symphorien ];
3333+ platforms = platforms.linux;
3434+ };
3535+}