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
48 lines
999 B
Nix
48 lines
999 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "spiffe-helper";
|
|
version = "0.10.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "spiffe";
|
|
repo = "spiffe-helper";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-rP0qXSut+9m8wCzByO0CO6IobC1lphK/3Y1OhPgiAOw=";
|
|
};
|
|
|
|
vendorHash = "sha256-sAcmJNry3nuWyzt0Ee05JjROR/pDXxu2NVmltotSD0U=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
preCheck = ''
|
|
patchShebangs pkg/sidecar/sidecar_test.sh
|
|
'';
|
|
|
|
doInstallCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
|
|
installCheckPhase = ''
|
|
runHook preInstallCheck
|
|
|
|
# no version output
|
|
$out/bin/${finalAttrs.meta.mainProgram} -h
|
|
|
|
runHook postInstallCheck
|
|
'';
|
|
|
|
meta = {
|
|
description = "Retrieve and manage SVIDs on behalf of a workload";
|
|
homepage = "https://github.com/spiffe/spiffe-helper";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ jk ];
|
|
mainProgram = "spiffe-helper";
|
|
};
|
|
})
|