Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add step-ca 0.15.5 #102131

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
39 changes: 39 additions & 0 deletions pkgs/tools/security/step-ca/0.15.nix
@@ -0,0 +1,39 @@
{ lib, buildGoModule, fetchFromGitHub }:
let
sha256 = "01y4wi6j1frfpd6ndwrxw4sr9rwhj8m96mvp76rnszzwgvlydgd4";
vendorSha256 = "1is4rvga3anmzqqd1bmdw3014lxrvnm19jrfpyvmdqh7pc7cm4i5";
version = "0.15.5";
in
dsx marked this conversation as resolved.
Show resolved Hide resolved
buildGoModule {
pname = "step-ca";
version = version;

src = fetchFromGitHub {
owner = "smallstep";
repo = "certificates";
rev = "v${version}";
sha256 = sha256;
};

goPackagePath = "github.com/smallstep/certificates";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
goPackagePath = "github.com/smallstep/certificates";
goPackagePath = "github.com/smallstep/certificates";
vendorSha256 = "1is4rvga3anmzqqd1bmdw3014lxrvnm19jrfpyvmdqh7pc7cm4i5";

vendorSha256 = vendorSha256;

buildPhase = ''
runHook preBuild
CGO_ENABLED=0 go build -v -o bin/step-ca -ldflags='-w -X "main.Version=${version}" -X "main.BuildTime=1969-12-31 00:00 UTC"' github.com/smallstep/certificates/cmd/step-ca
'';

installPhase = ''
mkdir -p $out/bin
cp -v bin/* $out/bin
'';

meta = with lib; {
description = "A private certificate authority (X.509 & SSH) & ACME server";
longDescription = "A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH";
homepage = "https://smallstep.com/certificates/";
license = licenses.asl20;
maintainers = with maintainers; [ cmcdragonkai ];
platforms = with platforms; linux ++ darwin;
};
}
5 changes: 3 additions & 2 deletions pkgs/tools/security/step-ca/default.nix
Expand Up @@ -16,10 +16,11 @@ buildGoPackage rec {
goDeps = ./deps.nix;

meta = with lib; {
description = "A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH";
description = "A private certificate authority (X.509 & SSH) & ACME server";
longDescription = "A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH";
dsx marked this conversation as resolved.
Show resolved Hide resolved
homepage = "https://smallstep.com/certificates/";
license = licenses.asl20;
maintainers = with maintainers; [ cmcdragonkai ];
platforms = platforms.linux ++ platforms.darwin;
platforms = with platforms; linux ++ darwin;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -2518,6 +2518,8 @@ in

step-ca = callPackage ../tools/security/step-ca { };

step-ca_0_15 = callPackage ../tools/security/step-ca/0.15.nix { };

step-cli = callPackage ../tools/security/step-cli { };

string-machine = callPackage ../applications/audio/string-machine { };
Expand Down