2021-10-31 12:00:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, nix
|
|
|
|
, nlohmann_json
|
|
|
|
, boost
|
|
|
|
, graphviz
|
|
|
|
, Security
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2020-02-15 06:06:59 +00:00
|
|
|
|
2018-05-21 20:42:35 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "nix-du";
|
2022-11-07 12:00:00 +00:00
|
|
|
version = "1.0.0";
|
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}";
|
2022-11-07 12:00:00 +00:00
|
|
|
sha256 = "sha256-JU0kXMS4vCMdm3nOJM92Bit16141iuBnjRaV+HXiReQ=";
|
2018-05-21 20:42:35 +00:00
|
|
|
};
|
2020-02-15 06:06:59 +00:00
|
|
|
|
2022-11-07 12:00:00 +00:00
|
|
|
cargoSha256 = "sha256-DX0jpp1ujaeesW7iQWZ5/xAzGndOQqBmQZbBpMEI9u0=";
|
2018-05-21 20:42:35 +00:00
|
|
|
|
2018-11-03 10:08:23 +00:00
|
|
|
doCheck = true;
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ nix graphviz ];
|
2018-05-21 20:42:35 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
nix
|
2021-10-31 12:00:00 +00:00
|
|
|
nlohmann_json
|
2021-04-13 11:47:23 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2022-03-13 12:00:00 +00:00
|
|
|
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
|
2018-05-21 20:42:35 +00:00
|
|
|
|
2021-01-11 07:54:33 +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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/symphorien/nix-du";
|
2021-04-13 11:47:23 +00:00
|
|
|
license = licenses.lgpl3Only;
|
2018-05-21 20:42:35 +00:00
|
|
|
maintainers = [ maintainers.symphorien ];
|
2018-06-22 19:39:55 +00:00
|
|
|
platforms = platforms.unix;
|
2018-05-21 20:42:35 +00:00
|
|
|
};
|
|
|
|
}
|