mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 21:43:32 +00:00
f8f9f13d57
lib.getExe: Do not make assumptions about the main program
18 lines
372 B
Nix
18 lines
372 B
Nix
{ buildGoModule, callPackage }:
|
|
let
|
|
common = callPackage ./common.nix { };
|
|
in
|
|
buildGoModule {
|
|
pname = "woodpecker-agent";
|
|
inherit (common) version src ldflags postInstall vendorHash;
|
|
|
|
subPackages = "cmd/agent";
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
meta = common.meta // {
|
|
description = "Woodpecker Continuous Integration agent";
|
|
mainProgram = "woodpecker-agent";
|
|
};
|
|
}
|