summary refs log tree commit diff
path: root/pkgs/tools/package-management/nix-du/default.nix
blob: 24672296506dda878ae56449c06781b12c9b433f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz }:
rustPlatform.buildRustPackage rec {
  name = "nix-du-${version}";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "symphorien";
    repo = "nix-du";
    rev = "v${version}";
    sha256 = "1n1qgqjbwbb59xnzgz0dn8h8pckh6yq3crh0w6x2sngijwh678x8";
  };
  cargoSha256 = "1qidbrkdpf4kliyvy2040qi3a67s8mr2r46rjcblr1v2gar0xgs0";

  # switch to true when nix includes https://github.com/NixOS/nix/pull/2223 and 
  # https://github.com/NixOS/nix/pull/2234
  doCheck = false;
  checkInputs = [ graphviz ];

  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.unix;
  };
}