haskellPackages.llvm-general-darwin: fix #23794
by hiding under llvm-general. There seems no use in a separately named attribute. The derivations are unchanged.
This commit is contained in:
parent
beb2a2f63d
commit
69448187a4
1 changed files with 12 additions and 13 deletions
|
@ -216,20 +216,19 @@ self: super: builtins.intersectAttrs super {
|
|||
# Uses OpenGL in testing
|
||||
caramia = dontCheck super.caramia;
|
||||
|
||||
llvm-general-darwin = overrideCabal (super.llvm-general.override { llvm-config = pkgs.llvm_35; }) (drv: {
|
||||
preConfigure = ''
|
||||
sed -i llvm-general.cabal \
|
||||
-e 's,extra-libraries: stdc++,extra-libraries: c++,'
|
||||
'';
|
||||
configureFlags = (drv.configureFlags or []) ++ ["--extra-include-dirs=${pkgs.libcxx}/include/c++/v1"];
|
||||
librarySystemDepends = [ pkgs.libcxx ] ++ drv.librarySystemDepends or [];
|
||||
});
|
||||
|
||||
# Supports only 3.5 for now, https://github.com/bscarlet/llvm-general/issues/142
|
||||
llvm-general =
|
||||
if pkgs.stdenv.isDarwin
|
||||
then self.llvm-general-darwin
|
||||
else super.llvm-general.override { llvm-config = pkgs.llvm_35; };
|
||||
# Supports only 3.5 for now, https://github.com/bscarlet/llvm-general/issues/142
|
||||
let base = super.llvm-general.override { llvm-config = pkgs.llvm_35; };
|
||||
in if !pkgs.stdenv.isDarwin then base else overrideCabal base (
|
||||
drv: {
|
||||
preConfigure = ''
|
||||
sed -i llvm-general.cabal \
|
||||
-e 's,extra-libraries: stdc++,extra-libraries: c++,'
|
||||
'';
|
||||
configureFlags = (drv.configureFlags or []) ++ ["--extra-include-dirs=${pkgs.libcxx}/include/c++/v1"];
|
||||
librarySystemDepends = [ pkgs.libcxx ] ++ drv.librarySystemDepends or [];
|
||||
}
|
||||
);
|
||||
|
||||
# Needs help finding LLVM.
|
||||
spaceprobe = addBuildTool super.spaceprobe self.llvmPackages.llvm;
|
||||
|
|
Loading…
Reference in a new issue