nixpkgs/pkgs/tools/package-management/nix-du/default.nix

31 lines
839 B
Nix
Raw Normal View History

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