about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorsymphorien <symphorien@users.noreply.github.com>2018-06-26 18:06:16 +0000
committerxeji <36407913+xeji@users.noreply.github.com>2018-06-26 20:06:16 +0200
commitd85aae23238cc1127fdb56eeaec6aebb7539b09a (patch)
tree47221edabf00427cb0987908ccc1ac15ba452376 /pkgs
parent52e6042b99465b6fbdca48aaf2cf767e04194d5e (diff)
downloadnixlib-d85aae23238cc1127fdb56eeaec6aebb7539b09a.tar
nixlib-d85aae23238cc1127fdb56eeaec6aebb7539b09a.tar.gz
nixlib-d85aae23238cc1127fdb56eeaec6aebb7539b09a.tar.bz2
nixlib-d85aae23238cc1127fdb56eeaec6aebb7539b09a.tar.lz
nixlib-d85aae23238cc1127fdb56eeaec6aebb7539b09a.tar.xz
nixlib-d85aae23238cc1127fdb56eeaec6aebb7539b09a.tar.zst
nixlib-d85aae23238cc1127fdb56eeaec6aebb7539b09a.zip
agedu: init at 20180522.5b12791 (#42538)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/agedu/default.nix35
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/misc/agedu/default.nix b/pkgs/tools/misc/agedu/default.nix
new file mode 100644
index 000000000000..2f9615a1fdbb
--- /dev/null
+++ b/pkgs/tools/misc/agedu/default.nix
@@ -0,0 +1,35 @@
+{stdenv, fetchgit, autoreconfHook, halibut}:
+let
+  date = "20180522";
+  rev = "5b12791";
+in
+stdenv.mkDerivation {
+  name = "agedu-${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;
+    sha256 = "1zyxif0i3yil4xm8y9aqk6wsdwi7b3jg682lv6ds6a6bl047fz1q";
+  };
+
+  nativeBuildInputs = [autoreconfHook halibut];
+
+  meta = with stdenv.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 ];
+    platforms = platforms.linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 85fa455d56d7..8b4997706b20 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -14958,6 +14958,8 @@ with pkgs;
     stdenv = overrideCC stdenv gcc49;
   };
 
+  agedu = callPackage ../tools/misc/agedu { };
+
   ahoviewer = callPackage ../applications/graphics/ahoviewer {
     useUnrar = config.ahoviewer.useUnrar or false;
   };