Skip to content

Add step-ca 0.15.5#102131

Closed
dsx wants to merge 10 commits intoNixOS:masterfrom
dsx:master
Closed

Add step-ca 0.15.5#102131
dsx wants to merge 10 commits intoNixOS:masterfrom
dsx:master

Conversation

@dsx
Copy link
Copy Markdown
Contributor

@dsx dsx commented Oct 30, 2020

Motivation for this change
Things done
  • [×] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • [×] NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • [×] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • [×] Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Oct 30, 2020
@ofborg ofborg bot requested review from CMCDragonkai and kalbasit October 30, 2020 04:46
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Oct 30, 2020
Comment thread pkgs/tools/security/step-ca/0.15.nix
Comment thread pkgs/tools/security/step-ca/0.15.nix
Comment thread pkgs/tools/security/step-ca/0.15.nix Outdated
Comment thread pkgs/tools/security/step-ca/0.15.nix Outdated
Comment thread pkgs/tools/security/step-ca/default.nix Outdated
@@ -0,0 +1,42 @@
{ lib, buildGoModule, buildGoPackage, fetchFromGitHub }:
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 }:

Comment on lines +2 to +10
let
sha256 = "01y4wi6j1frfpd6ndwrxw4sr9rwhj8m96mvp76rnszzwgvlydgd4";
vendorSha256 = "1is4rvga3anmzqqd1bmdw3014lxrvnm19jrfpyvmdqh7pc7cm4i5";
version = "0.15.5";
in
buildGoModule {
inherit vendorSha256;
inherit version;
pname = "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
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";

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

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

@SuperSandro2000
Copy link
Copy Markdown
Member

Why did you not update the 0.13.X version?

@dsx
Copy link
Copy Markdown
Contributor Author

dsx commented Nov 27, 2020

I haven't read step-ca change log.

@AluisioASG
Copy link
Copy Markdown
Contributor

Is this still being worked on?

Copy link
Copy Markdown
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

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

Please squash the commits and change PR and commit title to step-ca: init at 0.15.5

@mohe2015
Copy link
Copy Markdown
Contributor

@dsx I don't understand but isn't this version already in master? https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/security/step-ca/default.nix

@AluisioASG
Copy link
Copy Markdown
Contributor

I don't understand but isn't this version already in master? https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/security/step-ca/default.nix

Indeed, looks like it's covered by #93711.

@SuperSandro2000
Copy link
Copy Markdown
Member

Good catch! Closing as duplicate. Maybe we want to add an alias for this?

@mohe2015
Copy link
Copy Markdown
Contributor

mohe2015 commented Jan 25, 2021

@SuperSandro2000 There already exist step-ca and step-cli (https://github.com/NixOS/nixpkgs/tree/master/pkgs/tools/security) so I think it's fine. These are two tools from the smallstep organization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants