3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/package-management/nix-du/default.nix

45 lines
919 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, nix
, nlohmann_json
, boost
, graphviz
, Security
, pkg-config
}:
2018-05-21 21:42:35 +01:00
rustPlatform.buildRustPackage rec {
2019-08-31 12:41:23 +01:00
pname = "nix-du";
version = "0.4.0";
2018-05-21 21:42:35 +01:00
src = fetchFromGitHub {
owner = "symphorien";
repo = "nix-du";
2019-10-12 13:00:00 +01:00
rev = "v${version}";
sha256 = "0nl451xfby8krxl2wyn91mm0rvacj1718qbqw6k56dwsqlnnxmx0";
2018-05-21 21:42:35 +01:00
};
cargoSha256 = "0swdlp3qdisr8gxihg5syplzssggx9avmdb2w70056436046gs1r";
2018-05-21 21:42:35 +01:00
2018-11-03 10:08:23 +00:00
doCheck = true;
checkInputs = [ nix graphviz ];
2018-05-21 21:42:35 +01:00
buildInputs = [
boost
nix
nlohmann_json
] ++ lib.optionals stdenv.isDarwin [ Security ];
nativeBuildInputs = [ pkg-config ];
2018-05-21 21:42:35 +01:00
meta = with lib; {
2018-05-21 21:42:35 +01:00
description = "A tool to determine which gc-roots take space in your nix store";
homepage = "https://github.com/symphorien/nix-du";
license = licenses.lgpl3Only;
2018-05-21 21:42:35 +01:00
maintainers = [ maintainers.symphorien ];
2018-06-22 20:39:55 +01:00
platforms = platforms.unix;
2018-05-21 21:42:35 +01:00
};
}