Skip to content

Commit 56d6761

Browse files
committed
refactor(uniond): filter src
1 parent dd86bc8 commit 56d6761

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

uniond/uniond.nix

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ ... }: {
2-
perSystem = { pkgs, self', crane, system, ensureAtRepositoryRoot, ... }:
2+
perSystem = { pkgs, self', crane, system, ensureAtRepositoryRoot, nix-filter, ... }:
33
let
44
CGO_CFLAGS = "-I${pkgs.libblst}/include -I${pkgs.libblst.src}/src -I${pkgs.libblst.src}/build -I${self'.packages.bls-eth.src}/bls/include -O -D__BLST_PORTABLE__";
55
in
@@ -35,7 +35,15 @@
3535
else
3636
pkgs.buildGoModule) ({
3737
name = "uniond";
38-
src = ./.;
38+
src = nix-filter
39+
{
40+
name = "uniond-source";
41+
root = ./.;
42+
exclude = [
43+
(nix-filter.matchExt "nix")
44+
(nix-filter.matchExt "md")
45+
];
46+
};
3947
vendorSha256 = null;
4048
doCheck = true;
4149
meta.mainProgram = "uniond";

0 commit comments

Comments
 (0)