Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
1.0 KiB
Nix
55 lines
1.0 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
pcsclite,
|
|
softhsm,
|
|
opensc,
|
|
yubihsm-shell,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "step-kms-plugin";
|
|
version = "0.15.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "smallstep";
|
|
repo = "step-kms-plugin";
|
|
rev = "v${version}";
|
|
hash = "sha256-Evi5rXdb/2WDlIUXJcQjQ0d1Zrfg1x00tFonlNmLi6E=";
|
|
};
|
|
|
|
vendorHash = "sha256-CxX4tQRBPtza1PAVeidp+KNeYxIh5y1tJ+RgcBKdORs=";
|
|
|
|
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.hostPlatform.isDarwin;
|
|
};
|
|
}
|