
Programmatically prefixing "CGO_ENABLED =" and "CGO_ENABLED=0;" with "env.", but excluding the files * pkgs/build-support/go/module.nix (buildGoModule implementation) * pkgs/development/compilers/go/* (the Go compiler) * pkgs/build-support/docker/tarsum.nix (not using buildGoModule)
24 lines
401 B
Nix
24 lines
401 B
Nix
{ buildGoModule, callPackage }:
|
|
let
|
|
common = callPackage ./common.nix { };
|
|
in
|
|
buildGoModule {
|
|
pname = "woodpecker-agent";
|
|
inherit (common)
|
|
version
|
|
src
|
|
ldflags
|
|
postInstall
|
|
vendorHash
|
|
;
|
|
|
|
subPackages = "cmd/agent";
|
|
|
|
env.CGO_ENABLED = 0;
|
|
|
|
meta = common.meta // {
|
|
description = "Woodpecker Continuous Integration agent";
|
|
mainProgram = "woodpecker-agent";
|
|
};
|
|
}
|