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

32 lines
846 B
Nix
Raw Normal View History

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