about summary refs log tree commit diff
path: root/pkgs/tools/package-management/nix-du
diff options
context:
space:
mode:
authorSymphorien Gibol <symphorien+git@xlumurb.eu>2018-05-21 22:42:35 +0200
committerSymphorien Gibol <symphorien+git@xlumurb.eu>2018-05-22 16:24:00 +0200
commit87125d6d085aa5810e31f3bc6a35626818861f36 (patch)
tree801572674a4f9ad8c6a2f0aef6a13da84e0c948a /pkgs/tools/package-management/nix-du
parentaf55a0c300224fe9debfc4a57d7ee789e00e649d (diff)
nix-du: init at 0.1.1
Diffstat (limited to 'pkgs/tools/package-management/nix-du')
-rw-r--r--pkgs/tools/package-management/nix-du/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/package-management/nix-du/default.nix b/pkgs/tools/package-management/nix-du/default.nix
new file mode 100644
index 0000000000000..2e68666b7fa38
--- /dev/null
+++ b/pkgs/tools/package-management/nix-du/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz }:
+rustPlatform.buildRustPackage rec {
+  name = "nix-du-${version}";
+  version = "0.1.1";
+
+  src = fetchFromGitHub {
+    owner = "symphorien";
+    repo = "nix-du";
+    rev = "v${version}";
+    sha256 = "0kxacn5qw21pp4zl6wr9wyb2mm2nlnp6mla3m5p9dm7vrm1fd1x9";
+  };
+  cargoSha256 = "04c48lzi7hny3nq4ffdpvsr4dxbi32faka163fp1yc9953zdw9az";
+
+  doCheck = !stdenv.isDarwin;
+  checkInputs = [ graphviz ];
+  nativeBuildInputs = [] ++ stdenv.lib.optionals doCheck checkInputs;
+
+  buildInputs = [
+    boost
+    nix
+  ];
+
+  meta = with stdenv.lib; {
+    description = "A tool to determine which gc-roots take space in your nix store";
+    homepage = https://github.com/symphorien/nix-du;
+    license = licenses.lgpl3;
+    maintainers = [ maintainers.symphorien ];
+    platforms = platforms.all;
+  };
+}