Skip to content

Commit 381ec72

Browse files
wip
1 parent 021eb6d commit 381ec72

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

nix/project.nix

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,25 @@ let
2323
lib.optionals (pkgs.stdenv.hostPlatform.isLinux && config.compiler-nix-name == "ghc966")
2424
[ p.ucrt64 p.musl64 ];
2525

26-
modules = [{
27-
packages = lib.mkIf pkgs.stdenv.hostPlatform.isMusl {
28-
# ruby fails to build with musl, hence we disable cddl tests
29-
dmq-node.components.tests.dmq-cddl.build-tools = lib.mkForce [ ];
30-
dmq-node.components.tests.dmq-cddl.doCheck = lib.mkForce false;
31-
dmq-node.ghcOptions = with pkgs; [
32-
"-L${lib.getLib static-gmp}/lib"
33-
"-L${lib.getLib static-libsodium-vrf}/lib"
34-
"-L${lib.getLib static-secp256k1}/lib"
35-
"-L${lib.getLib static-libblst}/lib"
36-
];
37-
};
38-
}];
26+
modules = [
27+
{
28+
packages.dmq-node.components.tests.dmq-cddl.build-tools = [ pkgs.cddl pkgs.cbor-diag pkgs.cddlc ];
29+
packages.dmq-node.components.tests.dmq-cddl.preCheck = "export HOME=`pwd`";
30+
}
31+
{
32+
packages = lib.mkIf pkgs.stdenv.hostPlatform.isMusl {
33+
# ruby fails to build with musl, hence we disable cddl tests
34+
dmq-node.components.tests.dmq-cddl.build-tools = lib.mkForce [ ];
35+
dmq-node.components.tests.dmq-cddl.doCheck = lib.mkForce false;
36+
dmq-node.ghcOptions = with pkgs; [
37+
"-L${lib.getLib static-gmp}/lib"
38+
"-L${lib.getLib static-libsodium-vrf}/lib"
39+
"-L${lib.getLib static-secp256k1}/lib"
40+
"-L${lib.getLib static-libblst}/lib"
41+
];
42+
};
43+
}
44+
];
3945
}
4046
);
4147

0 commit comments

Comments
 (0)