1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 23:55:23 +00:00
nixpkgs/pkgs/tools/package-management/nix-du/default.nix
Guillaume Girol 46163f6fef
nix-du: 0.3.3 -> 0.3.4 (#119243)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-04-13 13:47:23 +02:00

34 lines
877 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz, Security, pkg-config }:
rustPlatform.buildRustPackage rec {
pname = "nix-du";
version = "0.3.4";
src = fetchFromGitHub {
owner = "symphorien";
repo = "nix-du";
rev = "v${version}";
sha256 = "0iwlprjbphwsrxdhgsxa8ja73snsyh0rdxrpsf1ygid2ky5vc83f";
};
cargoSha256 = "19fwkw9iswzkhqgfq7pmcabqmq5c7vvirwaxbfjshkwcgn47rgjl";
doCheck = true;
checkInputs = [ nix graphviz ];
buildInputs = [
boost
nix
] ++ lib.optionals stdenv.isDarwin [ Security ];
nativeBuildInputs = [ pkg-config ];
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;
};
}