File tree Expand file tree Collapse file tree
pkgs/by-name/tw/tweag-credential-helper Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ fetchFromGitHub ,
4+ buildGoModule ,
5+ nix-update-script ,
6+ } :
7+
8+ buildGoModule ( finalAttrs : {
9+ pname = "tweag-credential-helper" ;
10+ version = "0.0.5" ;
11+
12+ src = fetchFromGitHub {
13+ owner = "tweag" ;
14+ repo = "credential-helper" ;
15+ tag = "v${ finalAttrs . version } " ;
16+ hash = "sha256-yUDUvj4/Ej+7/LFGSehPK8g9Z5Il9+II8CuFt9ML+EU=" ;
17+ } ;
18+
19+ vendorHash = "sha256-uPQwJ61ikuUjHdkqlSGhosqTjZqTSKc+TpSWblSGb0E=" ;
20+
21+ env . CGO_ENABLED = "0" ;
22+ ldflags = [
23+ "-s"
24+ "-X main.version=${ finalAttrs . version } "
25+ ] ;
26+
27+ subPackages = [
28+ "cmd/credential-helper"
29+ ] ;
30+
31+ postInstall = "mv $out/bin/credential-helper $out/bin/tweag-credential-helper" ;
32+
33+ passthru . updateScript = nix-update-script { } ;
34+
35+ # Tests currently expect to run under Bazel
36+ # and are not compatible with the Go test runner due to path differences.
37+ # The issue needs to be resolved upstream.
38+ doCheck = false ;
39+
40+ meta = {
41+ description = "Credential helper framework and agent for Bazel and similar tools implementing the credential-helper spec" ;
42+ homepage = "https://github.com/tweag/credential-helper" ;
43+ changelog = "https://github.com/tweag/credential-helper/releases/tag/v${ finalAttrs . version } " ;
44+ license = lib . licenses . asl20 ;
45+ mainProgram = "tweag-credential-helper" ;
46+ maintainers = with lib . maintainers ; [
47+ malt3
48+ ] ;
49+ platforms = lib . platforms . unix ;
50+ } ;
51+ } )
You can’t perform that action at this time.
0 commit comments