@@ -1,3 +1,21 @@
1−final: prev: {
2−
3−}
1+final: prev:
2+{
3+ haskell-nix = prev.haskell-nix // ({
4+ defaultModules = prev.haskell-nix.defaultModules ++ [
5+ ({ pkgs, buildModules, config, lib, ... }:
6+ {
7+ packages = { } // pkgs.lib.optionalAttrs (pkgs.stdenv.hostPlatform.isDarwin && !pkgs.stdenv.cc.nativeLibc)
8+ {
9+ # Workaround for broken nixpkgs darwin.security_tool in
10+ # Mojave. This mirrors the workaround in nixpkgs
11+ # haskellPackages.
12+ #
13+ # ref:
14+ # https://github.com/NixOS/nixpkgs/pull/47676
15+ # https://github.com/NixOS/nixpkgs/issues/45042
16+ x509-system.components.library.preBuild = "substituteInPlace System/X509/MacOS.hs --replace security /usr/bin/security";
17+ };
18+ })
19+ ];
20+ });
21+}