fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 stdenv,
3 lib,
4 buildGoModule,
5 fetchFromGitHub,
6 pkg-config,
7 pcsclite,
8 softhsm,
9 opensc,
10 yubihsm-shell,
11}:
12
13buildGoModule rec {
14 pname = "step-kms-plugin";
15 version = "0.16.0";
16
17 src = fetchFromGitHub {
18 owner = "smallstep";
19 repo = "step-kms-plugin";
20 rev = "v${version}";
21 hash = "sha256-q06so1hbiBhQ3TYKEI6C9yO0KctWVMnqGaMJpnWiEag=";
22 };
23
24 vendorHash = "sha256-kuKKATZ7GoAy4NU8Zs/zHYdjZ++OTcT9Ep3sunEOpR0=";
25
26 proxyVendor = true;
27
28 nativeBuildInputs = [
29 pkg-config
30 ];
31
32 buildInputs = [
33 opensc
34 pcsclite
35 softhsm
36 yubihsm-shell
37 ];
38
39 ldflags = [
40 "-w"
41 "-s"
42 "-X github.com/smallstep/step-kms-plugin/cmd.Version=${version}"
43 ];
44
45 CGO_CFLAGS = "-I${lib.getDev pcsclite}/include/PCSC/";
46
47 meta = {
48 description = "Step plugin to manage keys and certificates on cloud KMSs and HSMs";
49 homepage = "https://smallstep.com/cli/";
50 license = lib.licenses.asl20;
51 maintainers = with lib.maintainers; [ qbit ];
52 mainProgram = "step-kms-plugin";
53 };
54}