nixpkgs/pkgs/tools/misc/agedu/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.3 KiB
Nix
Raw Normal View History

2022-04-26 21:39:07 +01:00
{ lib, stdenv
, fetchgit
, cmake
, halibut
}:
let
2022-04-26 21:39:07 +01:00
date = "20211129";
rev = "8cd63c5";
in
stdenv.mkDerivation {
2020-12-29 13:01:30 +00:00
pname = "agedu";
version = "${date}.${rev}";
# upstream provides tarballs but it seems they disappear after the next version is released
src = fetchgit {
url = "https://git.tartarus.org/simon/agedu.git";
inherit rev;
2022-04-26 21:39:07 +01:00
hash = "sha256-5wqpL7wrFwIf6lxVte+GXLsXYY0/36EIAUepVNDCnSE=";
};
2022-04-26 21:39:07 +01:00
nativeBuildInputs = [ cmake halibut ];
meta = with lib; {
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.
'';
homepage = "https://www.chiark.greenend.org.uk/~sgtatham/agedu/";
license = licenses.mit;
maintainers = with maintainers; [ symphorien ];
2021-03-04 07:47:19 +00:00
platforms = platforms.unix;
};
}