uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
44
pkgs/tools/package-management/nix-du/default.nix
Normal file
44
pkgs/tools/package-management/nix-du/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, nix
|
||||
, nlohmann_json
|
||||
, boost
|
||||
, graphviz
|
||||
, Security
|
||||
, pkg-config
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "nix-du";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "symphorien";
|
||||
repo = "nix-du";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-LOs+geYOiAigxwc4VD0FiZQjAnIrcV9ncyPuwGhS92E=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-aEm+SQgE63ZWpb2kXavyoiq2rVkaebFw8kqWPMr2aMA=";
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue