Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
42 changes: 42 additions & 0 deletions pkgs/tools/security/step-ca/0.15.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ lib, buildGoModule, buildGoPackage, fetchFromGitHub }:
Comment thread
dsx marked this conversation as resolved.
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
{ lib, buildGoModule, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:

let
sha256 = "01y4wi6j1frfpd6ndwrxw4sr9rwhj8m96mvp76rnszzwgvlydgd4";
vendorSha256 = "1is4rvga3anmzqqd1bmdw3014lxrvnm19jrfpyvmdqh7pc7cm4i5";
version = "0.15.5";
in
Comment thread
dsx marked this conversation as resolved.
buildGoModule {
inherit vendorSha256;
inherit version;
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";


src = fetchFromGitHub {
inherit sha256;
Copy link
Copy Markdown
Member

@SuperSandro2000 SuperSandro2000 Nov 25, 2020

Choose a reason for hiding this comment

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

Suggested change
inherit sha256;
sha256 = "1zr78p2jxhajqv59kwqqq02njzr4s20ddixyh2ki95p6afniw7wp";

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

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";


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 23:59 UTC"' github.com/smallstep/certificates/cmd/step-ca
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
CGO_ENABLED=0 go build -v -o bin/step-ca -ldflags='-w -X "main.Version=${version}" -X "main.BuildTime=1969-12-31 23:59 UTC"' github.com/smallstep/certificates/cmd/step-ca
CGO_ENABLED=0 go build -v -o bin/step-ca -ldflags='-w -X "main.Version=${version}" -X "main.BuildTime=1969-12-31 23:59 UTC"' github.com/smallstep/certificates/cmd/step-ca
runHook postBuild

'';

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;
};
}
8 changes: 6 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,14 @@ 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
'';
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