2018-05-21 20:42:35 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "nix-du-${version}";
|
2018-05-24 11:27:06 +00:00
|
|
|
version = "0.1.2";
|
2018-05-21 20:42:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "symphorien";
|
|
|
|
repo = "nix-du";
|
|
|
|
rev = "v${version}";
|
2018-05-24 11:27:06 +00:00
|
|
|
sha256 = "1y7ifr4c3v1494swh6akvna0d0rxjy9jw3mw2wdd6vj1xphvmimq";
|
2018-05-21 20:42:35 +00:00
|
|
|
};
|
2018-05-24 11:27:06 +00:00
|
|
|
cargoSha256 = "0qq7a6ncxnbjvnmly99awqrk9f3z9b55ifil7b0bn5yhk4h9sa6y";
|
2018-05-21 20:42:35 +00:00
|
|
|
|
2018-05-24 11:27:06 +00:00
|
|
|
doCheck = true;
|
2018-05-21 20:42:35 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|