Skip to content

Commit fb0e1ff

Browse files
authored
Merge pull request #32 from qowoz/src
change src to use fileset.toSource, fileset.unions
2 parents f2ea7b8 + d44a86a commit fb0e1ff

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

flake.nix

+9-10
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@
1818
pname = "comin";
1919
version = "0.2.0";
2020
nativeCheckInputs = [ final.git ];
21-
src = final.lib.cleanSourceWith {
22-
src = ./.;
23-
filter = path: type:
24-
let
25-
p = baseNameOf path;
26-
in !(
27-
p == "flake.nix" ||
28-
p == "flake.lock" ||
29-
p == "README.md"
30-
);
21+
src = final.lib.fileset.toSource {
22+
root = ./.;
23+
fileset = final.lib.fileset.unions [
24+
./cmd
25+
./internal
26+
./go.mod
27+
./go.sum
28+
./main.go
29+
];
3130
};
3231
vendorHash = "sha256-9qObgfXvMkwE+1BVZNQXVhKhL6LqMqyIUhGnXf8q9SI=";
3332
ldflags = [

0 commit comments

Comments
 (0)