Skip to content

Commit

Permalink
exclude mrfs from nix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Dec 2, 2024
1 parent 5f30e72 commit 3abcd58
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@
};

commonArgs =
let
excludedPkgs = [ "example-mrf" "http-client-test" ];
buildExcludeParam = pkgs.lib.strings.concatMapStringsSep " " (pkgName: "--exclude ${pkgName}");
excludeParam = buildExcludeParam excludedPkgs;
in
{
inherit
src
Expand All @@ -93,7 +98,7 @@

NIX_OUTPATH_USED_AS_RANDOM_SEED = "aaaaaaaaaa";
CARGO_PROFILE = "dist";
cargoExtraArgs = "--locked ${features}";
cargoExtraArgs = "--locked ${features} --workspace ${excludeParam}";
}
// (pkgs.lib.optionalAttrs inputs.debugBuild.value {
# do a debug build, as `dev` is the default debug profile
Expand All @@ -108,6 +113,7 @@
// {
pname = "kitsune-workspace";
src = craneLib.cleanCargoSource src;
doCheck = false;
}
);
in
Expand Down

0 comments on commit 3abcd58

Please sign in to comment.