xin/pkgs/step-kms-plugin.nix

38 lines
914 B
Nix
Raw Normal View History

{ 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 {
pname = "step-kms-plugin";
2023-03-08 10:13:51 -07:00
version = "0.7.0";
src = fetchFromGitHub {
owner = "smallstep";
repo = pname;
rev = "v${version}";
2023-03-08 10:13:51 -07:00
hash = "sha256-5oMkR997ZbPpOqazpyxEvLKbak7THAu855FC6a/Tr+4=";
};
2023-03-08 10:13:51 -07:00
vendorHash = "sha256-Zd2rZez5vP9uL5dolGHO8FR0ARoYP78amcakK/lKtdc=";
2023-03-08 10:13:51 -07:00
proxyVendor = true;
2023-03-08 10:13:51 -07:00
nativeBuildInputs = [ pkg-config ];
2023-03-08 10:13:51 -07:00
buildInputs = [ opensc pcsclite softhsm yubihsm-shell ];
2023-03-08 10:13:51 -07:00
ldflags = [
"-w"
"-s"
"-X github.com/smallstep/step-kms-plugin/cmd.Version=${version}"
];
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";
};
}