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 21:42:35 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "nix-du";
|
2021-11-03 12:00:00 +00:00
|
|
|
version = "0.4.1";
|
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}";
|
2021-11-03 12:00:00 +00:00
|
|
|
sha256 = "0v6hixj81aa6g3sddny46i0yqaaqv6krp5xadj0xz1g77cb8xy2w";
|
2018-05-21 21:42:35 +01:00
|
|
|
};
|
2020-02-15 06:06:59 +00:00
|
|
|
|
2021-11-03 12:00:00 +00:00
|
|
|
cargoSha256 = "11jaks6adsvrvxlqqw3glvn4ff7xh9j35ayfrl89rb4achvqp7xn";
|
2018-05-21 21:42:35 +01:00
|
|
|
|
2018-11-03 10:08:23 +00:00
|
|
|
doCheck = true;
|
2020-04-28 13:00:00 +01:00
|
|
|
checkInputs = [ nix graphviz ];
|
2018-05-21 21:42:35 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
nix
|
2021-10-31 12:00:00 +00:00
|
|
|
nlohmann_json
|
2021-04-13 12:47:23 +01:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-05-21 21:42:35 +01:00
|
|
|
|
2021-01-11 07:54:33 +00: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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/symphorien/nix-du";
|
2021-04-13 12:47:23 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|