mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
976a5bc9ff
fix build with nix 2.7
45 lines
942 B
Nix
45 lines
942 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, nix
|
|
, nlohmann_json
|
|
, boost
|
|
, graphviz
|
|
, Security
|
|
, pkg-config
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "nix-du";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "symphorien";
|
|
repo = "nix-du";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-NnoCoiYTXci7f9MXsxEhoYHwPsaAAuK2wSrDye2+SYM=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-X5181gZtvnUHZAqMjNARRVFq12LuLJfPP5ZOWxBRxXk=";
|
|
|
|
doCheck = true;
|
|
checkInputs = [ nix graphviz ];
|
|
|
|
buildInputs = [
|
|
boost
|
|
nix
|
|
nlohmann_json
|
|
] ++ lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
|
|
|
|
meta = with lib; {
|
|
description = "A tool to determine which gc-roots take space in your nix store";
|
|
homepage = "https://github.com/symphorien/nix-du";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = [ maintainers.symphorien ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|