2018-11-03 11:08:23 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz, darwin }:
|
2018-05-21 22:42:35 +02:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "nix-du";
|
2018-11-03 11:08:23 +01:00
|
|
|
version = "0.3.0";
|
2018-05-21 22:42:35 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "symphorien";
|
|
|
|
repo = "nix-du";
|
|
|
|
rev = "v${version}";
|
2018-11-03 11:08:23 +01:00
|
|
|
sha256 = "1x6qpivxbn94034jfdxb97xi97fhcdv2z7llq2ccfc80mgd0gz8l";
|
2018-05-21 22:42:35 +02:00
|
|
|
};
|
2019-05-25 13:03:08 +02:00
|
|
|
cargoSha256 = "071gbhxbvnwi7n3zpy7bmlprzir0sl0f0pb191xg2ynw678prd7v";
|
2018-05-21 22:42:35 +02:00
|
|
|
|
2018-11-03 11:08:23 +01:00
|
|
|
doCheck = true;
|
2018-05-21 22:42:35 +02:00
|
|
|
checkInputs = [ graphviz ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
nix
|
2018-11-03 11:08:23 +01:00
|
|
|
] ++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
2018-05-21 22:42:35 +02:00
|
|
|
|
|
|
|
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 ];
|
2018-06-22 21:39:55 +02:00
|
|
|
platforms = platforms.unix;
|
2018-05-21 22:42:35 +02:00
|
|
|
};
|
|
|
|
}
|