2023-03-06 18:33:56 -07:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, pkg-config, pcsclite, softhsm, opensc
|
2023-03-22 10:35:46 -06:00
|
|
|
, yubihsm-shell }:
|
2023-03-08 10:13:51 -07:00
|
|
|
|
|
|
|
buildGoModule rec {
|
2023-03-06 18:04:04 -07:00
|
|
|
pname = "step-kms-plugin";
|
2023-03-08 10:13:51 -07:00
|
|
|
version = "0.7.0";
|
2023-03-06 18:04:04 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "smallstep";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-08 10:13:51 -07:00
|
|
|
hash = "sha256-5oMkR997ZbPpOqazpyxEvLKbak7THAu855FC6a/Tr+4=";
|
2023-03-06 18:04:04 -07:00
|
|
|
};
|
|
|
|
|
2023-03-08 10:13:51 -07:00
|
|
|
vendorHash = "sha256-Zd2rZez5vP9uL5dolGHO8FR0ARoYP78amcakK/lKtdc=";
|
2023-03-06 18:04:04 -07:00
|
|
|
|
2023-03-08 10:13:51 -07:00
|
|
|
proxyVendor = true;
|
2023-03-06 18:04:04 -07:00
|
|
|
|
2023-03-08 10:13:51 -07:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-03-06 18:04:04 -07:00
|
|
|
|
2023-03-08 10:13:51 -07:00
|
|
|
buildInputs = [ opensc pcsclite softhsm yubihsm-shell ];
|
2023-03-06 18:04:04 -07:00
|
|
|
|
2023-03-08 10:13:51 -07:00
|
|
|
ldflags = [
|
|
|
|
"-w"
|
|
|
|
"-s"
|
|
|
|
"-X github.com/smallstep/step-kms-plugin/cmd.Version=${version}"
|
|
|
|
];
|
2023-03-06 18:04:04 -07:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"step plugin to manage keys and certificates on cloud KMSs and HSMs";
|
|
|
|
homepage = "https://smallstep.com/cli/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ qbit ];
|
|
|
|
mainProgram = "step-kms-plugin";
|
|
|
|
};
|
|
|
|
}
|