nixtest/package.nix

23 lines
435 B
Nix
Raw Normal View History

{
lib,
buildGoModule,
...
}:
2025-05-03 22:05:29 +02:00
buildGoModule {
name = "nixtest";
src =
# filter everything except for cmd/ and go.mod, go.sum
with lib.fileset;
toSource {
root = ./.;
fileset = unions [
./cmd
./go.mod
./go.sum
];
};
2025-05-03 22:05:29 +02:00
subPackages = ["cmd/nixtest"];
vendorHash = "sha256-Hmdtkp3UK/lveE2/U6FmKno38DxY+MMQlQuZFf1UBME=";
2025-05-03 22:05:29 +02:00
meta.mainProgram = "nixtest";
}