2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz, darwin }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nix-du";
|
|
|
|
version = "0.3.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "symphorien";
|
|
|
|
repo = "nix-du";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "149d60mid29s5alv5m3d7jrhyzc6cj7b6hpiq399gsdwzgxr00wq";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoSha256 = "1a6svl89dcdb5fpvs2i32i6agyhl0sx7kkkw70rqr17fyzl5psai";
|
|
|
|
|
|
|
|
doCheck = true;
|
2020-05-03 17:38:23 +00:00
|
|
|
checkInputs = [ nix graphviz ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
nix
|
|
|
|
] ++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|