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

32 lines
843 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz, darwin }:
2018-05-21 20:42:35 +00:00
rustPlatform.buildRustPackage rec {
2019-08-31 11:41:23 +00:00
pname = "nix-du";
2020-08-27 12:00:00 +00:00
version = "0.3.3";
2018-05-21 20:42:35 +00:00
src = fetchFromGitHub {
owner = "symphorien";
repo = "nix-du";
2019-10-12 12:00:00 +00:00
rev = "v${version}";
2020-08-27 12:00:00 +00:00
sha256 = "0h8ya0nn65hbyi3ssmrjarfxadx2sa61sspjlrln8knk7ppxk3mq";
2018-05-21 20:42:35 +00:00
};
2020-08-27 12:00:00 +00:00
cargoSha256 = "0d86bn6myr29bwrzw3ihnzg1yij673s80bm1l8srk2k2szyfwwh5";
2018-05-21 20:42:35 +00:00
2018-11-03 10:08:23 +00:00
doCheck = true;
checkInputs = [ nix graphviz ];
2018-05-21 20:42:35 +00:00
buildInputs = [
boost
nix
2021-01-15 09:19:50 +00:00
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
2018-05-21 20:42:35 +00:00
meta = with lib; {
2018-05-21 20:42:35 +00:00
description = "A tool to determine which gc-roots take space in your nix store";
homepage = "https://github.com/symphorien/nix-du";
2018-05-21 20:42:35 +00:00
license = licenses.lgpl3;
maintainers = [ maintainers.symphorien ];
2018-06-22 19:39:55 +00:00
platforms = platforms.unix;
2018-05-21 20:42:35 +00:00
};
}