mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
Merge pull request #139954 from superherointj/package-regclient-0.3.8
This commit is contained in:
commit
a209c6c7b1
41
pkgs/development/tools/regclient/default.nix
Normal file
41
pkgs/development/tools/regclient/default.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
let bins = [ "regbot" "regctl" "regsync" ]; in
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "regclient";
|
||||
version = "0.3.8";
|
||||
tag = "v${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "regclient";
|
||||
repo = "regclient";
|
||||
rev = tag;
|
||||
sha256 = "14w0g24sgphgib33sdvrvwk86p7km2pasb5fmr3p48i7sc71ja3h";
|
||||
};
|
||||
vendorSha256 = "sha256-9sRjP7lxMRdt9D9ElIX+mbYIvCaknWMgDyYl+1/q0/g=";
|
||||
|
||||
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; {
|
||||
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; [ superherointj ];
|
||||
};
|
||||
}
|
@ -14787,6 +14787,9 @@ with pkgs;
|
||||
|
||||
redo-sh = callPackage ../development/tools/build-managers/redo-sh { };
|
||||
|
||||
regclient = callPackage ../development/tools/regclient { };
|
||||
inherit (regclient) regbot regctl regsync;
|
||||
|
||||
reno = callPackage ../development/tools/reno { };
|
||||
|
||||
re2c = callPackage ../development/tools/parsing/re2c { };
|
||||
|
Loading…
Reference in New Issue
Block a user