Files
nixpkgs/pkgs/by-name/ni/nix-du/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +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";
};
}