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
42
pkgs/development/tools/regclient/default.nix
Normal file
42
pkgs/development/tools/regclient/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ stdenv, lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
let bins = [ "regbot" "regctl" "regsync" ]; in
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "regclient";
|
||||
version = "0.4.0";
|
||||
tag = "v${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "regclient";
|
||||
repo = "regclient";
|
||||
rev = tag;
|
||||
sha256 = "sha256-AaSl++/i00YAvmvaUSEwLLpItYACtmWEFTuUngl7rkI=";
|
||||
};
|
||||
vendorSha256 = "sha256-qpZ3RsBOkWqLCDK11vBGkAZJBC7T8hmpmm4ccGeWBus=";
|
||||
|
||||
outputs = [ "out" ] ++ bins;
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.VCSTag=${tag}"
|
||||
];
|
||||
|
||||
postInstall =
|
||||
lib.concatStringsSep "\n" (
|
||||
map (bin: ''
|
||||
mkdir -p ''$${bin}/bin &&
|
||||
mv $out/bin/${bin} ''$${bin}/bin/ &&
|
||||
ln -s ''$${bin}/bin/${bin} $out/bin/
|
||||
'') bins
|
||||
);
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "Docker and OCI Registry Client in Go and tooling using those libraries";
|
||||
homepage = "https://github.com/regclient/regclient";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue