2021-01-11 08:54:33 +01:00
|
|
|
{lib, stdenv, fetchgit, autoreconfHook, halibut}:
|
2018-06-26 20:06:16 +02:00
|
|
|
let
|
2020-12-29 14:01:30 +01:00
|
|
|
date = "20200705";
|
|
|
|
rev = "2a7d4a2";
|
2018-06-26 20:06:16 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2020-12-29 14:01:30 +01:00
|
|
|
pname = "agedu";
|
|
|
|
version = "${date}.${rev}";
|
|
|
|
|
2018-06-26 20:06:16 +02:00
|
|
|
# upstream provides tarballs but it seems they disappear after the next version is released
|
|
|
|
src = fetchgit {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://git.tartarus.org/simon/agedu.git";
|
2018-06-26 20:06:16 +02:00
|
|
|
inherit rev;
|
2020-12-29 14:01:30 +01:00
|
|
|
sha256 = "gRNscl/vhBoZaHFCs9JjDBHDRoEpILJLtiI4YV+K/b4=";
|
2018-06-26 20:06:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [autoreconfHook halibut];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-06-26 20:06:16 +02:00
|
|
|
description = "A Unix utility for tracking down wasted disk space";
|
|
|
|
longDescription = ''
|
|
|
|
Most Unix file systems, in their default mode, helpfully record when a
|
|
|
|
file was last accessed. So if you generated a large amount of data years
|
|
|
|
ago, forgot to clean it up, and have never used it since, then it ought
|
|
|
|
in principle to be possible to use those last-access time stamps to tell
|
|
|
|
the difference between that and a large amount of data you're still
|
|
|
|
using regularly.
|
|
|
|
|
|
|
|
agedu uses this information to tell you which files waste disk space when
|
|
|
|
you haven't used them since a long time.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.chiark.greenend.org.uk/~sgtatham/agedu/";
|
2018-06-26 20:06:16 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ symphorien ];
|
2021-03-04 08:47:19 +01:00
|
|
|
platforms = platforms.unix;
|
2018-06-26 20:06:16 +02:00
|
|
|
};
|
|
|
|
}
|