mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-10-26 09:37:17 +03:00
c9dde4d9f4
This mirrors the workaround in nixpkgs for haskellPackages. ref: https://github.com/NixOS/nixpkgs/pull/47676
22 lines
803 B
Nix
22 lines
803 B
Nix
final: prev:
|
|
{
|
|
haskell-nix = prev.haskell-nix // ({
|
|
defaultModules = prev.haskell-nix.defaultModules ++ [
|
|
({ pkgs, buildModules, config, lib, ... }:
|
|
{
|
|
packages = { } // pkgs.lib.optionalAttrs (pkgs.stdenv.hostPlatform.isDarwin && !pkgs.stdenv.cc.nativeLibc)
|
|
{
|
|
# Workaround for broken nixpkgs darwin.security_tool in
|
|
# Mojave. This mirrors the workaround in nixpkgs
|
|
# haskellPackages.
|
|
#
|
|
# ref:
|
|
# https://github.com/NixOS/nixpkgs/pull/47676
|
|
# https://github.com/NixOS/nixpkgs/issues/45042
|
|
x509-system.components.library.preBuild = "substituteInPlace System/X509/MacOS.hs --replace security /usr/bin/security";
|
|
};
|
|
})
|
|
];
|
|
});
|
|
}
|