mirror of
https://gitlab.com/TECHNOFAB/nixtest.git
synced 2025-12-16 12:03:52 +01:00
24 lines
479 B
Nix
24 lines
479 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
...
|
|
}:
|
|
buildGoModule {
|
|
pname = "nixtest";
|
|
version = "latest";
|
|
src =
|
|
# filter everything except for cmd/ and go.mod, go.sum
|
|
with lib.fileset;
|
|
toSource {
|
|
root = ./.;
|
|
fileset = unions [
|
|
./cmd
|
|
./internal
|
|
./go.mod
|
|
./go.sum
|
|
];
|
|
};
|
|
subPackages = ["cmd/nixtest"];
|
|
vendorHash = "sha256-uyVSXUSoDfOhRxrtUd6KQWmx6I8kw3PJxKfYMZgz3h8=";
|
|
meta.mainProgram = "nixtest";
|
|
}
|