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
43
pkgs/development/tools/go-containerregistry/default.nix
Normal file
43
pkgs/development/tools/go-containerregistry/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
let bins = [ "crane" "gcrane" ]; in
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "go-containerregistry";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-TbMx+DVIYzhQ50f7sDXfhQnT/U6U+G9GTUbtYSu4/KI=";
|
||||
};
|
||||
vendorSha256 = null;
|
||||
|
||||
subPackages = [ "cmd/crane" "cmd/gcrane" ];
|
||||
|
||||
outputs = [ "out" ] ++ bins;
|
||||
|
||||
ldflags =
|
||||
let t = "github.com/google/go-containerregistry"; in
|
||||
[ "-s" "-w" "-X ${t}/cmd/crane/cmd.Version=v${version}" "-X ${t}/pkg/v1/remote/transport.Version=${version}" ];
|
||||
|
||||
postInstall =
|
||||
lib.concatStringsSep "\n" (
|
||||
map (bin: ''
|
||||
mkdir -p ''$${bin}/bin &&
|
||||
mv $out/bin/${bin} ''$${bin}/bin/ &&
|
||||
ln -s ''$${bin}/bin/${bin} $out/bin/
|
||||
'') bins
|
||||
);
|
||||
|
||||
# NOTE: no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tools for interacting with remote images and registries including crane and gcrane";
|
||||
homepage = "https://github.com/google/go-containerregistry";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ yurrriq ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue