rekor-server: init at 0.1.1

This commit is contained in:
Thomas Gerbet 2021-03-27 17:16:20 +01:00
parent 727fa99a64
commit 8460e643b8
2 changed files with 45 additions and 23 deletions

View File

@ -1,31 +1,51 @@
{ lib, buildGoModule, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec { let
pname = "rekor-cli"; generic = { pname, subPackages, description, postInstall }:
version = "0.1.1"; buildGoModule rec {
inherit pname;
version = "0.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sigstore"; owner = "sigstore";
repo = "rekor"; repo = "rekor";
rev = "v${version}"; rev = "v${version}";
sha256 = "1hvkfvc747g5r4h8vb1d8ikqxmlyxsycnlh78agmmjpxlasspmbk"; sha256 = "1hvkfvc747g5r4h8vb1d8ikqxmlyxsycnlh78agmmjpxlasspmbk";
}; };
vendorSha256 = "0vdir9ia3hv27rkm6jnvhsfc3mxw36xfvwqnfd34rgzmzcfxlrbv"; vendorSha256 = "0vdir9ia3hv27rkm6jnvhsfc3mxw36xfvwqnfd34rgzmzcfxlrbv";
subPackages = [ "cmd/cli" ]; inherit subPackages postInstall;
# Will not be needed with the next version as the package as been renamed upstream meta = with lib; {
postInstall = '' inherit description;
if [ -f "$out/bin/cli" ]; then homepage = "https://github.com/sigstore/rekor";
mv "$out/bin/cli" "$out/bin/rekor-client" changelog = "https://github.com/sigstore/rekor/releases/tag/v${version}";
fi license = licenses.asl20;
''; maintainers = with maintainers; [ lesuisse ];
};
meta = with lib; { };
in {
rekor-cli = generic {
pname = "rekor-cli";
subPackages = [ "cmd/cli" ];
# Will not be needed with the next version, the package as been renamed upstream
postInstall = ''
if [ -f "$out/bin/cli" ]; then
mv "$out/bin/cli" "$out/bin/rekor-client"
fi
'';
description = "CLI client for Sigstore, the Signature Transparency Log"; description = "CLI client for Sigstore, the Signature Transparency Log";
homepage = "https://github.com/sigstore/rekor"; };
license = licenses.asl20; rekor-server = generic {
maintainers = with maintainers; [ lesuisse ]; pname = "rekor-server";
subPackages = [ "cmd/server" ];
# Will not be needed with the next version, the package as been renamed upstream
postInstall = ''
if [ -f "$out/bin/server" ]; then
mv "$out/bin/server" "$out/bin/rekor-server"
fi
'';
description = "Sigstore server, the Signature Transparency Log";
}; };
} }

View File

@ -7679,7 +7679,9 @@ in
retext = libsForQt5.callPackage ../applications/editors/retext { }; retext = libsForQt5.callPackage ../applications/editors/retext { };
rekor-cli = callPackage ../tools/security/rekor { }; inherit (callPackage ../tools/security/rekor { })
rekor-cli
rekor-server;
richgo = callPackage ../development/tools/richgo { }; richgo = callPackage ../development/tools/richgo { };