···1+{stdenv, fetchgit, autoreconfHook, halibut}:
2+let
3+ date = "20180522";
4+ rev = "5b12791";
5+in
6+stdenv.mkDerivation {
7+ name = "agedu-${date}.${rev}";
8+ # upstream provides tarballs but it seems they disappear after the next version is released
9+ src = fetchgit {
10+ url = https://git.tartarus.org/simon/agedu.git;
11+ inherit rev;
12+ sha256 = "1zyxif0i3yil4xm8y9aqk6wsdwi7b3jg682lv6ds6a6bl047fz1q";
13+ };
14+15+ nativeBuildInputs = [autoreconfHook halibut];
16+17+ meta = with stdenv.lib; {
18+ description = "A Unix utility for tracking down wasted disk space";
19+ longDescription = ''
20+ Most Unix file systems, in their default mode, helpfully record when a
21+ file was last accessed. So if you generated a large amount of data years
22+ ago, forgot to clean it up, and have never used it since, then it ought
23+ in principle to be possible to use those last-access time stamps to tell
24+ the difference between that and a large amount of data you're still
25+ using regularly.
26+27+ agedu uses this information to tell you which files waste disk space when
28+ you haven't used them since a long time.
29+ '';
30+ homepage = https://www.chiark.greenend.org.uk/~sgtatham/agedu/;
31+ license = licenses.mit;
32+ maintainers = with maintainers; [ symphorien ];
33+ platforms = platforms.linux;
34+ };
35+}