Skip to content

Commit

Permalink
Merge pull request #32 from qowoz/src
Browse files Browse the repository at this point in the history
change src to use fileset.toSource, fileset.unions
  • Loading branch information
nlewo authored Apr 21, 2024
2 parents f2ea7b8 + d44a86a commit fb0e1ff
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@
pname = "comin";
version = "0.2.0";
nativeCheckInputs = [ final.git ];
src = final.lib.cleanSourceWith {
src = ./.;
filter = path: type:
let
p = baseNameOf path;
in !(
p == "flake.nix" ||
p == "flake.lock" ||
p == "README.md"
);
src = final.lib.fileset.toSource {
root = ./.;
fileset = final.lib.fileset.unions [
./cmd
./internal
./go.mod
./go.sum
./main.go
];
};
vendorHash = "sha256-9qObgfXvMkwE+1BVZNQXVhKhL6LqMqyIUhGnXf8q9SI=";
ldflags = [
Expand Down

0 comments on commit fb0e1ff

Please sign in to comment.