diff options
author | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2024-04-30 10:48:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 10:48:35 +0000 |
commit | 864f02b16940634e221b2c88be715be7a5ac95cc (patch) | |
tree | 6519432172877cacd6164eca417cfe13e2ffbc64 /pkgs/by-name/st/step-cli/package.nix | |
parent | b43343be4f0d9f91a7e63254a8b19d44645aec5e (diff) | |
parent | 60a3a2dada7d33d8a2bd718201149c5866527210 (diff) |
Merge pull request #307846 from isabelroses/stepcli-cleanup
stepcli: cleanup
Diffstat (limited to 'pkgs/by-name/st/step-cli/package.nix')
-rw-r--r-- | pkgs/by-name/st/step-cli/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/st/step-cli/package.nix b/pkgs/by-name/st/step-cli/package.nix new file mode 100644 index 0000000000000..65f8959e34e26 --- /dev/null +++ b/pkgs/by-name/st/step-cli/package.nix @@ -0,0 +1,41 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: let + version = "0.26.1"; +in + buildGoModule { + pname = "step-cli"; + inherit version; + + src = fetchFromGitHub { + owner = "smallstep"; + repo = "cli"; + rev = "refs/tags/v${version}"; + hash = "sha256-BVxdgyQsfCwHw/zjP3AKNib3sRWoBpMlZ7vh71nso94="; + }; + + ldflags = [ + "-w" + "-s" + "-X=main.Version=${version}" + ]; + + preCheck = '' + # Tries to connect to smallstep.com + rm command/certificate/remote_test.go + ''; + + vendorHash = "sha256-Z6wrWkyAGi01gH7+v2+VkyqRNqDwLFVwXm/1FIMzURg="; + + meta = { + description = "A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc"; + homepage = "https://smallstep.com/cli/"; + changelog = "https://github.com/smallstep/cli/blob/v${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [isabelroses]; + platforms = lib.platforms.linux ++ lib.platforms.darwin; + mainProgram = "step"; + }; + } |