2021-04-13 04:47:23 -07:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz, Security, pkg-config }:
|
2020-02-14 22:06:59 -08:00
|
|
|
|
2018-05-21 13:42:35 -07:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 04:41:23 -07:00
|
|
|
pname = "nix-du";
|
2021-04-13 04:47:23 -07:00
|
|
|
version = "0.3.4";
|
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}";
|
2021-04-13 04:47:23 -07:00
|
|
|
sha256 = "0iwlprjbphwsrxdhgsxa8ja73snsyh0rdxrpsf1ygid2ky5vc83f";
|
2018-05-21 13:42:35 -07:00
|
|
|
};
|
2020-02-14 22:06:59 -08:00
|
|
|
|
2021-04-13 04:47:23 -07:00
|
|
|
cargoSha256 = "19fwkw9iswzkhqgfq7pmcabqmq5c7vvirwaxbfjshkwcgn47rgjl";
|
2018-05-21 13:42:35 -07:00
|
|
|
|
2018-11-03 03:08:23 -07:00
|
|
|
doCheck = true;
|
2020-04-28 05:00:00 -07:00
|
|
|
checkInputs = [ nix graphviz ];
|
2018-05-21 13:42:35 -07:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
nix
|
2021-04-13 04:47:23 -07:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-05-21 13:42:35 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-05-21 13:42:35 -07:00
|
|
|
description = "A tool to determine which gc-roots take space in your nix store";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/symphorien/nix-du";
|
2021-04-13 04:47:23 -07:00
|
|
|
license = licenses.lgpl3Only;
|
2018-05-21 13:42:35 -07:00
|
|
|
maintainers = [ maintainers.symphorien ];
|
2018-06-22 12:39:55 -07:00
|
|
|
platforms = platforms.unix;
|
2018-05-21 13:42:35 -07:00
|
|
|
};
|
|
|
|
}
|