504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
53 lines
1,016 B
Nix
53 lines
1,016 B
Nix
{ stdenv
|
|
, lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, pcsclite
|
|
, softhsm
|
|
, opensc
|
|
, yubihsm-shell
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "step-kms-plugin";
|
|
version = "0.9.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "smallstep";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-l0MMcLghhqVVQAdhk0a0nDqYvJbXCV2PFbRtiGQcDn0=";
|
|
};
|
|
|
|
vendorHash = "sha256-3du8KlM08N5hKmzZWYZdfPOL5R+BspbK6ABF+RSJzHg=";
|
|
|
|
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;
|
|
};
|
|
}
|