Skip to content

Commit 5d46457

Browse files
committed
Move libsodium fix to test/modules.nix
1 parent f0b04dc commit 5d46457

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

test/exe-dlls/default.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ let
88
inherit compiler-nix-name evalPackages;
99
src = testSrc "exe-dlls";
1010
cabalProjectLocal = builtins.readFile ../cabal.project.local;
11-
modules = import ../modules.nix ++ optional stdenv.hostPlatform.isAndroid {
12-
packages.libsodium.configureFlags = [ "--c2hs-option=--cppopts=-D_Null_unspecified=" ];
13-
packages.libsodium.components.library.hardeningDisable = ["fortify"];
14-
};
11+
modules = import ../modules.nix;
1512
};
1613

1714
packages = project.hsPkgs;

test/modules.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
[{
22
# See https://github.com/haskell-cryptography/HsOpenSSL/issues/95
33
packages.HsOpenSSL.ghcOptions = ["-optc=-Wno-incompatible-pointer-types"];
4-
}]
4+
}
5+
6+
({pkgs, lib, ...}: lib.mkIf pkgs.stdenv.hostPlatform.isAndroid {
7+
packages.libsodium.configureFlags = [ "--c2hs-option=--cppopts=-D_Null_unspecified=" ];
8+
packages.libsodium.components.library.hardeningDisable = ["fortify"];
9+
})
10+
]

0 commit comments

Comments
 (0)