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
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "tweag-credential-helper";
|
|
version = "0.0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tweag";
|
|
repo = "credential-helper";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Evsw7l6zeHz3pDRNME8TIpYHnTbjlqY5abndjRLiTas=";
|
|
};
|
|
|
|
vendorHash = "sha256-LVXHCRgRop2wdNU/NG5FFVYf5iiQRSPoRSX7B7r2tuI=";
|
|
|
|
env.CGO_ENABLED = "0";
|
|
ldflags = [
|
|
"-s"
|
|
"-X main.version=${finalAttrs.version}"
|
|
];
|
|
|
|
subPackages = [
|
|
"cmd/credential-helper"
|
|
];
|
|
|
|
postInstall = "mv $out/bin/credential-helper $out/bin/tweag-credential-helper";
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
# Tests currently expect to run under Bazel
|
|
# and are not compatible with the Go test runner due to path differences.
|
|
# The issue needs to be resolved upstream.
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Credential helper framework and agent for Bazel and similar tools implementing the credential-helper spec";
|
|
homepage = "https://github.com/tweag/credential-helper";
|
|
changelog = "https://github.com/tweag/credential-helper/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "tweag-credential-helper";
|
|
maintainers = with lib.maintainers; [
|
|
malt3
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|