2023-03-15 16:39:30 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, pcsclite
|
|
|
|
, softhsm
|
|
|
|
, opensc
|
|
|
|
, yubihsm-shell
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "step-kms-plugin";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.11.1";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "smallstep";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-EkLLhHXvh10tfEY6AY6o3n3JcmCXwauHsQ8VJRBpnnY=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-kwM5eNeAVtA6DaoFtBhxc7Jnfb7vVkdIGpUxVGjWwC8=";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
proxyVendor = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
opensc
|
|
|
|
pcsclite
|
|
|
|
softhsm
|
|
|
|
yubihsm-shell
|
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
|
|
|
# can't find pcsclite header files
|
|
|
|
broken = stdenv.isDarwin;
|
|
|
|
};
|
|
|
|
}
|