Skip to content

Commit

Permalink
refactor(nix): minimize files included when building (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
ys5g authored Jan 28, 2025
1 parent 198ac8e commit a6a7a0a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,18 @@ in
buildGoModule {
inherit pname version buildInputs;

src = builtins.path {
name = "${pname}-${version}";
path = lib.cleanSource ../.;
src = lib.fileset.toSource {
root = ../.;
fileset = lib.fileset.unions [
../go.mod
../go.sum
../version

../main.go
../cmd
../lib
../data
];
};

vendorHash = "sha256-Pw6UNT5YkDVz4HcH7b5LfOg+K3ohrBGPGB9wYGAQ9F4=";
Expand Down

0 comments on commit a6a7a0a

Please sign in to comment.