mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
commit
c8a4562f59
30
pkgs/tools/package-management/nix-du/default.nix
Normal file
30
pkgs/tools/package-management/nix-du/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz }:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
name = "nix-du-${version}";
|
||||
version = "0.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "symphorien";
|
||||
repo = "nix-du";
|
||||
rev = "v${version}";
|
||||
sha256 = "0kxacn5qw21pp4zl6wr9wyb2mm2nlnp6mla3m5p9dm7vrm1fd1x9";
|
||||
};
|
||||
cargoSha256 = "04c48lzi7hny3nq4ffdpvsr4dxbi32faka163fp1yc9953zdw9az";
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
checkInputs = [ graphviz ];
|
||||
nativeBuildInputs = [] ++ stdenv.lib.optionals doCheck checkInputs;
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
nix
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A tool to determine which gc-roots take space in your nix store";
|
||||
homepage = https://github.com/symphorien/nix-du;
|
||||
license = licenses.lgpl3;
|
||||
maintainers = [ maintainers.symphorien ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -20915,6 +20915,8 @@ with pkgs;
|
||||
nix-deploy = haskell.lib.justStaticExecutables haskellPackages.nix-deploy;
|
||||
nix-diff = haskell.lib.justStaticExecutables haskellPackages.nix-diff;
|
||||
|
||||
nix-du = callPackage ../tools/package-management/nix-du { };
|
||||
|
||||
nix-info = callPackage ../tools/nix/info { };
|
||||
nix-info-tested = callPackage ../tools/nix/info { doCheck = true; };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user