Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions pkgs/tools/security/step-ca/0.15.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ lib, buildGoModule, fetchFromGitHub }:
let
sha256 = "01y4wi6j1frfpd6ndwrxw4sr9rwhj8m96mvp76rnszzwgvlydgd4";
vendorSha256 = "1is4rvga3anmzqqd1bmdw3014lxrvnm19jrfpyvmdqh7pc7cm4i5";
version = "0.15.5";
in
Comment thread
dsx marked this conversation as resolved.
buildGoModule {
pname = "step-ca";
Comment on lines +2 to +10

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
let
sha256 = "01y4wi6j1frfpd6ndwrxw4sr9rwhj8m96mvp76rnszzwgvlydgd4";
vendorSha256 = "1is4rvga3anmzqqd1bmdw3014lxrvnm19jrfpyvmdqh7pc7cm4i5";
version = "0.15.5";
in
buildGoModule {
inherit vendorSha256;
inherit version;
pname = "step-ca";
buildGoModule rec {
version = "0.15.5";
pname = "step-ca";

version = version;

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

goPackagePath = "github.com/smallstep/certificates";

Copy link
Copy Markdown
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
Original file line number Diff line number Diff line change
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";
Comment thread
dsx marked this conversation as resolved.
Outdated
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
Original file line number Diff line number Diff line change
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