mirror of
https://gitlab.com/TECHNOFAB/nixtest.git
synced 2025-12-12 10:10:09 +01:00
16 lines
406 B
Nix
16 lines
406 B
Nix
{buildGoModule, ...}:
|
|
buildGoModule {
|
|
name = "nixtest";
|
|
src =
|
|
# filter everything except for cmd/ and go.mod, go.sum
|
|
builtins.filterSource (
|
|
path: type:
|
|
builtins.match ".*(/cmd/?.*|/go\.(mod|sum))$"
|
|
path
|
|
!= null
|
|
)
|
|
./.;
|
|
subPackages = ["cmd/nixtest"];
|
|
vendorHash = "sha256-H0KiuTqY2cxsUvqoxWAHKHjdfsBHjYkqxdYgTY0ftes=";
|
|
meta.mainProgram = "nixtest";
|
|
}
|