@@ -0,0 +1,30 @@
1+{ stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz }:
2+rustPlatform.buildRustPackage rec {
3+ name = "nix-du-${version}";
4+ version = "0.1.1";
5+
6+ src = fetchFromGitHub {
7+ owner = "symphorien";
8+ repo = "nix-du";
9+ rev = "v${version}";
10+ sha256 = "0kxacn5qw21pp4zl6wr9wyb2mm2nlnp6mla3m5p9dm7vrm1fd1x9";
11+ };
12+ cargoSha256 = "04c48lzi7hny3nq4ffdpvsr4dxbi32faka163fp1yc9953zdw9az";
13+
14+ doCheck = !stdenv.isDarwin;
15+ checkInputs = [ graphviz ];
16+ nativeBuildInputs = [] ++ stdenv.lib.optionals doCheck checkInputs;
17+
18+ buildInputs = [
19+ boost
20+ nix
21+ ];
22+
23+ meta = with stdenv.lib; {
24+ description = "A tool to determine which gc-roots take space in your nix store";
25+ homepage = https://github.com/symphorien/nix-du;
26+ license = licenses.lgpl3;
27+ maintainers = [ maintainers.symphorien ];
28+ platforms = platforms.all;
29+ };
30+}