Skip to content

Commit

Permalink
refactor(uniond): filter src
Browse files Browse the repository at this point in the history
  • Loading branch information
cor committed Sep 6, 2023
1 parent 4ca58b7 commit a0c9fde
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions uniond/uniond.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ ... }: {
perSystem = { pkgs, self', crane, system, ensureAtRepositoryRoot, ... }:
perSystem = { pkgs, self', crane, system, ensureAtRepositoryRoot, nix-filter, ... }:
let
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__";
CGO_LDFLAGS = "-z noexecstack -static -L${pkgs.musl}/lib -L${self'.packages.libwasmvm}/lib -L${self'.packages.bls-eth}/lib";
Expand Down Expand Up @@ -36,7 +36,15 @@
else
pkgs.buildGoModule) ({
name = "uniond";
src = ./.;
src = nix-filter
{
name = "uniond-source";
root = ./.;
exclude = [
(nix-filter.matchExt "nix")
(nix-filter.matchExt "md")
];
};
vendorSha256 = null;
doCheck = true;
meta.mainProgram = "uniond";
Expand Down

0 comments on commit a0c9fde

Please sign in to comment.