Files
nixpkgs/pkgs/by-name/ni/nix-du/package.nix
2025-07-26 11:39:35 +02:00

52 lines
1.0 KiB
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
nixVersions,
nlohmann_json,
boost,
graphviz,
pkg-config,
}:
rustPlatform.buildRustPackage rec {
pname = "nix-du";
version = "1.2.3";
src = fetchFromGitHub {
owner = "symphorien";
repo = "nix-du";
tag = "v${version}";
hash = "sha256-/Afp0InA/0xXdombAzylYJF9wcv5WwYizVsP+fHTDrM=";
};
cargoHash = "sha256-Q/woxGh1I6FpgJ5D0x7KovSwuRXfZzqjzwljaoKj0/Y=";
doCheck = true;
nativeCheckInputs = [
nixVersions.nix_2_28
graphviz
];
buildInputs = [
boost
nixVersions.nix_2_28
nlohmann_json
];
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
meta = {
description = "Tool to determine which gc-roots take space in your nix store";
homepage = "https://github.com/symphorien/nix-du";
license = lib.licenses.lgpl3Only;
maintainers = [ lib.maintainers.symphorien ];
platforms = lib.platforms.unix;
mainProgram = "nix-du";
changelog = "https://github.com/symphorien/nix-du/blob/v${version}/CHANGELOG.md";
};
}