git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #40896 from symphorien/nix-du

nix-du: init at 0.1.1

commitc8a4562f5966e90cbbe04195b4a37a5d4a334f60 authorJörg Thalheim <Mic92@users.noreply.github.com> dateTue 22 May 2018, 15:46 (9 years ago) parent3807a0d87125d6
2 files changed+32
pkgs/tools/package-management/nix-du/default.nix+30 pkgs/top-level/all-packages.nix+2
pkgs/tools/package-management/nix-du/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz }:
2+rustPlatform.buildRustPackage rec {
3+ name = "nix-du-${version}";
4+ version = "0.1.1";
5+
6+ src = fetchFromGitHub {
7+ owner = "symphorien";
8+ repo = "nix-du";
9+ rev = "v${version}";
10+ sha256 = "0kxacn5qw21pp4zl6wr9wyb2mm2nlnp6mla3m5p9dm7vrm1fd1x9";
11+ };
12+ cargoSha256 = "04c48lzi7hny3nq4ffdpvsr4dxbi32faka163fp1yc9953zdw9az";
13+
14+ doCheck = !stdenv.isDarwin;
15+ checkInputs = [ graphviz ];
16+ nativeBuildInputs = [] ++ stdenv.lib.optionals doCheck checkInputs;
17+
18+ buildInputs = [
19+ boost
20+ nix
21+ ];
22+
23+ meta = with stdenv.lib; {
24+ description = "A tool to determine which gc-roots take space in your nix store";
25+ homepage = https://github.com/symphorien/nix-du;
26+ license = licenses.lgpl3;
27+ maintainers = [ maintainers.symphorien ];
28+ platforms = platforms.all;
29+ };
30+}
pkgs/top-level/all-packages.nix+2
@@ -20915,6 +20915,8 @@ with pkgs;
2091520915 nix-deploy = haskell.lib.justStaticExecutables haskellPackages.nix-deploy;
2091620916 nix-diff = haskell.lib.justStaticExecutables haskellPackages.nix-diff;
2091720917
20918+ nix-du = callPackage ../tools/package-management/nix-du { };
20919+
2091820920 nix-info = callPackage ../tools/nix/info { };
2091920921 nix-info-tested = callPackage ../tools/nix/info { doCheck = true; };
2092020922