lol

haskell.packages: move darwin-specific overrides into their own config

+173 -176
+2 -45
pkgs/development/haskell-modules/configuration-common.nix
··· 75 75 # Fix test trying to access /home directory 76 76 shell-conduit = overrideCabal super.shell-conduit (drv: { 77 77 postPatch = "sed -i s/home/tmp/ test/Spec.hs"; 78 - 79 - # the tests for shell-conduit on Darwin illegitimatey assume non-GNU echo 80 - # see: https://github.com/psibi/shell-conduit/issues/12 81 - doCheck = !pkgs.stdenv.isDarwin; 82 78 }); 83 79 84 80 # https://github.com/froozen/kademlia/issues/2 ··· 117 113 # Jailbreak is necessary for QuickCheck dependency. 118 114 vector = doJailbreak (if pkgs.stdenv.isi686 then appendConfigureFlag super.vector "--ghc-options=-msse2" else super.vector); 119 115 120 - conduit-extra = if pkgs.stdenv.isDarwin 121 - then super.conduit-extra.overrideAttrs (drv: { __darwinAllowLocalNetworking = true; }) 122 - else super.conduit-extra; 123 - 124 - # Fix Darwin build. 125 - halive = if pkgs.stdenv.isDarwin 126 - then addBuildDepend super.halive pkgs.darwin.apple_sdk.frameworks.AppKit 127 - else super.halive; 128 - 129 116 # Test suite fails due golden tests checking text representation 130 117 # of normalized dhall expressions, and newer dhall versions format 131 118 # differently. ··· 134 121 then throw "Drop dontCheck override for hpack-dhall > 0.5.2" 135 122 else dontCheck super.hpack-dhall; 136 123 137 - barbly = addBuildDepend super.barbly pkgs.darwin.apple_sdk.frameworks.AppKit; 138 - 139 - # Hakyll's tests are broken on Darwin (3 failures); and they require util-linux 140 - hakyll = if pkgs.stdenv.isDarwin 141 - then dontCheck (overrideCabal super.hakyll (drv: { 142 - testToolDepends = []; 143 - })) 144 - else super.hakyll; 145 - 146 - double-conversion = if !pkgs.stdenv.isDarwin 147 - then super.double-conversion 148 - else addExtraLibrary super.double-conversion pkgs.libcxx; 149 - 150 124 inline-c-cpp = overrideCabal super.inline-c-cpp (drv: { 151 125 postPatch = (drv.postPatch or "") + '' 152 126 substituteInPlace inline-c-cpp.cabal --replace "-optc-std=c++11" "" ··· 311 285 ldap-client = dontCheck super.ldap-client; 312 286 lensref = dontCheck super.lensref; 313 287 lvmrun = disableHardening (dontCheck super.lvmrun) ["format"]; 314 - math-functions = if pkgs.stdenv.isDarwin 315 - then dontCheck super.math-functions # "erf table" test fails on Darwin https://github.com/bos/math-functions/issues/63 316 - else super.math-functions; 317 288 matplotlib = dontCheck super.matplotlib; 318 289 # https://github.com/matterhorn-chat/matterhorn/issues/679 they do not want to be on stackage 319 290 matterhorn = doJailbreak super.matterhorn; # this is needed until the end of time :') 320 291 memcache = dontCheck super.memcache; 321 292 metrics = dontCheck super.metrics; 322 293 milena = dontCheck super.milena; 323 - mockery = if pkgs.stdenv.isDarwin 324 - then overrideCabal super.mockery (drv: { preCheck = "export TRAVIS=true"; }) # darwin doesn't have sub-second resolution https://github.com/hspec/mockery/issues/11 325 - else super.mockery; 326 294 modular-arithmetic = dontCheck super.modular-arithmetic; # tests require a very old Glob (0.7.*) 327 295 nats-queue = dontCheck super.nats-queue; 328 296 netpbm = dontCheck super.netpbm; ··· 463 431 # https://github.com/andrewthad/haskell-ip/issues/67 464 432 ip = dontCheck super.ip; 465 433 466 - # https://github.com/ndmitchell/shake/issues/206 467 - # https://github.com/ndmitchell/shake/issues/267 468 - shake = overrideCabal super.shake (drv: { doCheck = !pkgs.stdenv.isDarwin && false; }); 434 + # https://github.com/ndmitchell/shake/issues/804 435 + shake = dontCheck super.shake; 469 436 470 437 # https://github.com/nushio3/doctest-prop/issues/1 471 438 doctest-prop = dontCheck super.doctest-prop; ··· 840 807 # With ghc-8.2.x haddock would time out for unknown reason 841 808 # See https://github.com/haskell/haddock/issues/679 842 809 language-puppet = dontHaddock super.language-puppet; 843 - filecache = overrideCabal super.filecache (drv: { doCheck = !pkgs.stdenv.isDarwin; }); 844 810 845 811 # https://github.com/alphaHeavy/protobuf/issues/34 846 812 protobuf = dontCheck super.protobuf; ··· 1155 1121 ''; 1156 1122 }); 1157 1123 1158 - # gtk/gtk3 needs to be told on Darwin to use the Quartz 1159 - # rather than X11 backend (see eg https://github.com/gtk2hs/gtk2hs/issues/249). 1160 - gtk3 = appendConfigureFlags super.gtk3 (pkgs.lib.optional pkgs.stdenv.isDarwin "-f have-quartz-gtk"); 1161 - gtk = appendConfigureFlags super.gtk (pkgs.lib.optional pkgs.stdenv.isDarwin "-f have-quartz-gtk"); 1162 - 1163 1124 # Chart-tests needs and compiles some modules from Chart itself 1164 1125 Chart-tests = (addExtraLibrary super.Chart-tests self.QuickCheck).overrideAttrs (old: { 1165 1126 preCheck = old.postPatch or "" + '' ··· 1571 1532 1572 1533 # https://github.com/yesodweb/yesod/issues/1714 1573 1534 yesod-core = dontCheck super.yesod-core; 1574 - 1575 - # Add ApplicationServices on darwin 1576 - apecs-physics = addPkgconfigDepends super.apecs-physics 1577 - (pkgs.lib.optional pkgs.stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.ApplicationServices); 1578 1535 1579 1536 # Break out of overspecified constraint on QuickCheck. 1580 1537 algebraic-graphs = dontCheck super.algebraic-graphs;
+164
pkgs/development/haskell-modules/configuration-darwin.nix
··· 1 + # DARWIN-SPECIFIC OVERRIDES FOR THE HASKELL PACKAGE SET IN NIXPKGS 2 + 3 + { pkgs, haskellLib }: 4 + 5 + let 6 + inherit (pkgs) lib darwin; 7 + in 8 + 9 + with haskellLib; 10 + 11 + self: super: { 12 + 13 + # the tests for shell-conduit on Darwin illegitimatey assume non-GNU echo 14 + # see: https://github.com/psibi/shell-conduit/issues/12 15 + shell-conduit = dontCheck super.shell-conduit; 16 + 17 + conduit-extra = super.conduit-extra.overrideAttrs (drv: { 18 + __darwinAllowLocalNetworking = true; 19 + }); 20 + 21 + halive = addBuildDepend super.halive darwin.apple_sdk.frameworks.AppKit; 22 + 23 + # Hakyll's tests are broken on Darwin (3 failures); and they require util-linux 24 + hakyll = overrideCabal super.hakyll { 25 + testToolDepends = []; 26 + doCheck = false; 27 + }; 28 + 29 + barbly = addBuildDepend super.barbly darwin.apple_sdk.frameworks.AppKit; 30 + 31 + double-conversion = addExtraLibrary super.double-conversion pkgs.libcxx; 32 + 33 + apecs-physics = addPkgconfigDepends super.apecs-physics [ 34 + darwin.apple_sdk.frameworks.ApplicationServices 35 + ]; 36 + 37 + # "erf table" test fails on Darwin 38 + # https://github.com/bos/math-functions/issues/63 39 + math-functions = dontCheck super.math-functions; 40 + 41 + # darwin doesn't have sub-second resolution 42 + # https://github.com/hspec/mockery/issues/11 43 + mockery = overrideCabal super.mockery (drv: { 44 + preCheck = '' 45 + export TRAVIS=true 46 + '' + (drv.preCheck or ""); 47 + }); 48 + 49 + # https://github.com/ndmitchell/shake/issues/206 50 + shake = dontCheck super.shake; 51 + 52 + filecache = dontCheck super.filecache; 53 + 54 + # gtk/gtk3 needs to be told on Darwin to use the Quartz 55 + # rather than X11 backend (see eg https://github.com/gtk2hs/gtk2hs/issues/249). 56 + gtk3 = appendConfigureFlag super.gtk3 "-f have-quartz-gtk"; 57 + gtk = appendConfigureFlag super.gtk "-f have-quartz-gtk"; 58 + 59 + OpenAL = addExtraLibrary super.OpenAL darwin.apple_sdk.frameworks.OpenAL; 60 + 61 + proteaaudio = addExtraLibrary super.proteaaudio darwin.apple_sdk.frameworks.AudioToolbox; 62 + 63 + # the system-fileio tests use canonicalizePath, which fails in the sandbox 64 + system-fileio = dontCheck super.system-fileio; 65 + 66 + # Prevents needing to add `security_tool` as a run-time dependency for 67 + # everything using x509-system to give access to the `security` executable. 68 + # 69 + # darwin.security_tool is broken in Mojave (#45042) 70 + # 71 + # We will use the system provided security for now. 72 + # Beware this WILL break in sandboxes! 73 + # 74 + # TODO(matthewbauer): If someone really needs this to work in sandboxes, 75 + # I think we can add a propagatedImpureHost dep here, but I’m hoping to 76 + # get a proper fix available soonish. 77 + x509-system = overrideCabal super.x509-system (drv: 78 + lib.optionalAttrs (!pkgs.stdenv.cc.nativeLibc) { 79 + postPatch = '' 80 + substituteInPlace System/X509/MacOS.hs --replace security /usr/bin/security 81 + '' + (drv.postPatch or ""); 82 + }); 83 + 84 + # https://github.com/haskell-foundation/foundation/pull/412 85 + foundation = dontCheck super.foundation; 86 + 87 + llvm-hs = overrideCabal super.llvm-hs (oldAttrs: { 88 + # One test fails on darwin. 89 + doCheck = false; 90 + # llvm-hs's Setup.hs file tries to add the lib/ directory from LLVM8 to 91 + # the DYLD_LIBRARY_PATH environment variable. This messes up clang 92 + # when called from GHC, probably because clang is version 7, but we are 93 + # using LLVM8. 94 + preCompileBuildDriver = '' 95 + substituteInPlace Setup.hs --replace "addToLdLibraryPath libDir" "pure ()" 96 + '' + (oldAttrs.preCompileBuildDriver or ""); 97 + }); 98 + 99 + yesod-bin = addBuildDepend super.yesod-bin darwin.apple_sdk.frameworks.Cocoa; 100 + 101 + hmatrix = addBuildDepend super.hmatrix darwin.apple_sdk.frameworks.Accelerate; 102 + 103 + # Ensure the necessary frameworks are propagatedBuildInputs on darwin 104 + OpenGLRaw = overrideCabal super.OpenGLRaw (drv: { 105 + librarySystemDepends = []; 106 + libraryHaskellDepends = drv.libraryHaskellDepends ++ [ 107 + darwin.apple_sdk.frameworks.OpenGL 108 + ]; 109 + preConfigure = '' 110 + frameworkPaths=($(for i in $nativeBuildInputs; do if [ -d "$i"/Library/Frameworks ]; then echo "-F$i/Library/Frameworks"; fi done)) 111 + frameworkPaths=$(IFS=, ; echo "''${frameworkPaths[@]}") 112 + configureFlags+=$(if [ -n "$frameworkPaths" ]; then echo -n "--ghc-options=-optl=$frameworkPaths"; fi) 113 + '' + (drv.preConfigure or ""); 114 + }); 115 + GLURaw = overrideCabal super.GLURaw (drv: { 116 + librarySystemDepends = []; 117 + libraryHaskellDepends = drv.libraryHaskellDepends ++ [ 118 + darwin.apple_sdk.frameworks.OpenGL 119 + ]; 120 + }); 121 + bindings-GLFW = overrideCabal super.bindings-GLFW (drv: { 122 + librarySystemDepends = []; 123 + libraryHaskellDepends = drv.libraryHaskellDepends ++ [ 124 + darwin.apple_sdk.frameworks.AGL 125 + darwin.apple_sdk.frameworks.Cocoa 126 + darwin.apple_sdk.frameworks.OpenGL 127 + darwin.apple_sdk.frameworks.IOKit 128 + darwin.apple_sdk.frameworks.Kernel 129 + darwin.apple_sdk.frameworks.CoreVideo 130 + darwin.CF 131 + ]; 132 + }); 133 + OpenCL = overrideCabal super.OpenCL (drv: { 134 + librarySystemDepends = []; 135 + libraryHaskellDepends = drv.libraryHaskellDepends ++ [ 136 + darwin.apple_sdk.frameworks.OpenCL 137 + ]; 138 + }); 139 + 140 + # cabal2nix likes to generate dependencies on hinotify when hfsevents is 141 + # really required on darwin: https://github.com/NixOS/cabal2nix/issues/146. 142 + hinotify = self.hfsevents; 143 + 144 + # FSEvents API is very buggy and tests are unreliable. See 145 + # http://openradar.appspot.com/10207999 and similar issues. 146 + fsnotify = addBuildDepend (dontCheck super.fsnotify) 147 + darwin.apple_sdk.frameworks.Cocoa; 148 + 149 + FractalArt = overrideCabal super.FractalArt (drv: { 150 + librarySystemDepends = [ 151 + darwin.libobjc 152 + darwin.apple_sdk.frameworks.AppKit 153 + ] ++ (drv.librarySystemDepends or []); 154 + }); 155 + 156 + arbtt = overrideCabal super.arbtt (drv: { 157 + librarySystemDepends = [ 158 + darwin.apple_sdk.frameworks.Foundation 159 + darwin.apple_sdk.frameworks.Carbon 160 + darwin.apple_sdk.frameworks.IOKit 161 + ] ++ (drv.librarySystemDepends or []); 162 + }); 163 + 164 + }
+4 -131
pkgs/development/haskell-modules/configuration-nix.nix
··· 101 101 ormolu = enableSeparateBinOutput super.ormolu; 102 102 ghcid = enableSeparateBinOutput super.ghcid; 103 103 104 - # Ensure the necessary frameworks for Darwin. 105 - OpenAL = if pkgs.stdenv.isDarwin 106 - then addExtraLibrary super.OpenAL pkgs.darwin.apple_sdk.frameworks.OpenAL 107 - else super.OpenAL; 108 - 109 - # Ensure the necessary frameworks for Darwin. 110 - proteaaudio = if pkgs.stdenv.isDarwin 111 - then addExtraLibrary super.proteaaudio pkgs.darwin.apple_sdk.frameworks.AudioToolbox 112 - else super.proteaaudio; 113 - 114 - 115 104 hzk = overrideCabal super.hzk (drv: { 116 105 preConfigure = "sed -i -e /include-dirs/d hzk.cabal"; 117 106 configureFlags = [ "--extra-include-dirs=${pkgs.zookeeper_mt}/include/zookeeper" ]; ··· 131 120 # Foreign dependency name clashes with another Haskell package. 132 121 libarchive-conduit = super.libarchive-conduit.override { archive = pkgs.libarchive; }; 133 122 134 - # Fix Darwin build. 135 - halive = if pkgs.stdenv.isDarwin 136 - then addBuildDepend super.halive pkgs.darwin.apple_sdk.frameworks.AppKit 137 - else super.halive; 138 - 139 123 # Heist's test suite requires system pandoc 140 124 heist = overrideCabal super.heist (drv: { 141 125 testToolDepends = [pkgs.pandoc]; 142 126 }); 143 127 144 - # the system-fileio tests use canonicalizePath, which fails in the sandbox 145 - system-fileio = if pkgs.stdenv.isDarwin then dontCheck super.system-fileio else super.system-fileio; 146 - 147 - # Prevents needing to add `security_tool` as a run-time dependency for 148 - # everything using x509-system to give access to the `security` executable. 149 - x509-system = 150 - if pkgs.stdenv.hostPlatform.isDarwin && !pkgs.stdenv.cc.nativeLibc 151 - then 152 - # darwin.security_tool is broken in Mojave (#45042) 153 - 154 - # We will use the system provided security for now. 155 - # Beware this WILL break in sandboxes! 156 - 157 - # TODO(matthewbauer): If someone really needs this to work in sandboxes, 158 - # I think we can add a propagatedImpureHost dep here, but I’m hoping to 159 - # get a proper fix available soonish. 160 - overrideCabal super.x509-system (drv: { 161 - postPatch = (drv.postPatch or "") + '' 162 - substituteInPlace System/X509/MacOS.hs --replace security /usr/bin/security 163 - ''; 164 - }) 165 - else super.x509-system; 166 - 167 128 # https://github.com/NixOS/cabal2nix/issues/136 and https://github.com/NixOS/cabal2nix/issues/216 168 129 gio = disableHardening (addPkgconfigDepend (addBuildTool super.gio self.buildHaskellPackages.gtk2hs-buildtools) pkgs.glib) ["fortify"]; 169 130 glib = disableHardening (addPkgconfigDepend (addBuildTool super.glib self.buildHaskellPackages.gtk2hs-buildtools) pkgs.glib) ["fortify"]; ··· 266 227 # /homeless-shelter. Disabled. 267 228 purescript = dontCheck super.purescript; 268 229 269 - # https://github.com/haskell-foundation/foundation/pull/412 270 - foundation = 271 - if pkgs.stdenv.isDarwin 272 - then dontCheck super.foundation 273 - else super.foundation; 274 - 275 230 # Hardcoded include path 276 231 poppler = overrideCabal super.poppler (drv: { 277 232 postPatch = '' ··· 283 238 # Uses OpenGL in testing 284 239 caramia = dontCheck super.caramia; 285 240 286 - llvm-hs = 287 - let llvmHsWithLlvm9 = super.llvm-hs.override { llvm-config = pkgs.llvm_9; }; 288 - in 289 - if pkgs.stdenv.isDarwin 290 - then 291 - overrideCabal llvmHsWithLlvm9 (oldAttrs: { 292 - # One test fails on darwin. 293 - doCheck = false; 294 - # llvm-hs's Setup.hs file tries to add the lib/ directory from LLVM8 to 295 - # the DYLD_LIBRARY_PATH environment variable. This messes up clang 296 - # when called from GHC, probably because clang is version 7, but we are 297 - # using LLVM8. 298 - preCompileBuildDriver = oldAttrs.preCompileBuildDriver or "" + '' 299 - substituteInPlace Setup.hs --replace "addToLdLibraryPath libDir" "pure ()" 300 - ''; 301 - }) 302 - else llvmHsWithLlvm9; 241 + llvm-hs = super.llvm-hs.override { llvm-config = pkgs.llvm_9; }; 303 242 304 243 # Needs help finding LLVM. 305 244 spaceprobe = addBuildTool super.spaceprobe self.llvmPackages.llvm; ··· 322 261 # Patch to consider NIX_GHC just like xmonad does 323 262 dyre = appendPatch super.dyre ./patches/dyre-nix.patch; 324 263 325 - yesod-bin = if pkgs.stdenv.isDarwin 326 - then addBuildDepend super.yesod-bin pkgs.darwin.apple_sdk.frameworks.Cocoa 327 - else super.yesod-bin; 328 - 329 - hmatrix = if pkgs.stdenv.isDarwin 330 - then addBuildDepend super.hmatrix pkgs.darwin.apple_sdk.frameworks.Accelerate 331 - else super.hmatrix; 332 - 333 264 # https://github.com/edwinb/EpiVM/issues/13 334 265 # https://github.com/edwinb/EpiVM/issues/14 335 266 epic = addExtraLibraries (addBuildTool super.epic self.buildHaskellPackages.happy) [pkgs.boehmgc pkgs.gmp]; ··· 405 336 # Looks like Avahi provides the missing library 406 337 dnssd = super.dnssd.override { dns_sd = pkgs.avahi.override { withLibdnssdCompat = true; }; }; 407 338 408 - # Ensure the necessary frameworks are propagatedBuildInputs on darwin 409 - OpenGLRaw = overrideCabal super.OpenGLRaw (drv: { 410 - librarySystemDepends = 411 - pkgs.lib.optionals (!pkgs.stdenv.isDarwin) drv.librarySystemDepends; 412 - libraryHaskellDepends = drv.libraryHaskellDepends 413 - ++ pkgs.lib.optionals pkgs.stdenv.isDarwin 414 - [ pkgs.darwin.apple_sdk.frameworks.OpenGL ]; 415 - preConfigure = pkgs.lib.optionalString pkgs.stdenv.isDarwin '' 416 - frameworkPaths=($(for i in $nativeBuildInputs; do if [ -d "$i"/Library/Frameworks ]; then echo "-F$i/Library/Frameworks"; fi done)) 417 - frameworkPaths=$(IFS=, ; echo "''${frameworkPaths[@]}") 418 - configureFlags+=$(if [ -n "$frameworkPaths" ]; then echo -n "--ghc-options=-optl=$frameworkPaths"; fi) 419 - ''; 420 - }); 421 - GLURaw = overrideCabal super.GLURaw (drv: { 422 - librarySystemDepends = 423 - pkgs.lib.optionals (!pkgs.stdenv.isDarwin) drv.librarySystemDepends; 424 - libraryHaskellDepends = drv.libraryHaskellDepends 425 - ++ pkgs.lib.optionals pkgs.stdenv.isDarwin 426 - [ pkgs.darwin.apple_sdk.frameworks.OpenGL ]; 427 - }); 428 - bindings-GLFW = overrideCabal super.bindings-GLFW (drv: { 429 - doCheck = false; # requires an active X11 display 430 - librarySystemDepends = 431 - pkgs.lib.optionals (!pkgs.stdenv.isDarwin) drv.librarySystemDepends; 432 - libraryHaskellDepends = drv.libraryHaskellDepends 433 - ++ pkgs.lib.optionals pkgs.stdenv.isDarwin 434 - (with pkgs.darwin.apple_sdk.frameworks; 435 - [ AGL Cocoa OpenGL IOKit Kernel CoreVideo 436 - pkgs.darwin.CF ]); 437 - }); 438 - OpenCL = overrideCabal super.OpenCL (drv: { 439 - librarySystemDepends = 440 - pkgs.lib.optionals (!pkgs.stdenv.isDarwin) drv.librarySystemDepends; 441 - libraryHaskellDepends = drv.libraryHaskellDepends 442 - ++ pkgs.lib.optionals pkgs.stdenv.isDarwin 443 - [ pkgs.darwin.apple_sdk.frameworks.OpenCL ]; 444 - }); 339 + # requires an X11 display 340 + bindings-GLFW = dontCheck super.bindings-GLFW; 445 341 446 342 # requires an X11 display in test suite 447 343 gi-gtk-declarative = dontCheck super.gi-gtk-declarative; ··· 474 370 testHaskellDepends = (drv.testHaskellDepends or []) ++ [ self.test-framework self.test-framework-hunit ]; 475 371 }); 476 372 477 - # cabal2nix likes to generate dependencies on hinotify when hfsevents is really required 478 - # on darwin: https://github.com/NixOS/cabal2nix/issues/146. 479 - hinotify = if pkgs.stdenv.isDarwin then self.hfsevents else super.hinotify; 480 - 481 - # FSEvents API is very buggy and tests are unreliable. See 482 - # http://openradar.appspot.com/10207999 and similar issues. 483 373 # https://github.com/haskell-fswatch/hfsnotify/issues/62 484 - fsnotify = if pkgs.stdenv.isDarwin 485 - then addBuildDepend (dontCheck super.fsnotify) pkgs.darwin.apple_sdk.frameworks.Cocoa 486 - else dontCheck super.fsnotify; 374 + fsnotify = dontCheck super.fsnotify; 487 375 488 376 hidapi = addExtraLibrary super.hidapi pkgs.udev; 489 377 ··· 843 731 install -D man/pnbackup.1 $out/share/man/man1/pnbackup.1 844 732 '' + (drv.postInstall or ""); 845 733 }); 846 - 847 - FractalArt = overrideCabal super.FractalArt (drv: { 848 - librarySystemDepends = pkgs.lib.optionals pkgs.stdenv.hostPlatform.isDarwin [ 849 - pkgs.darwin.libobjc 850 - pkgs.darwin.apple_sdk.frameworks.AppKit 851 - ] ++ (drv.librarySystemDepends or []); 852 - }); 853 - 854 - arbtt = overrideCabal super.arbtt (drv: { 855 - librarySystemDepends = pkgs.lib.optionals pkgs.stdenv.hostPlatform.isDarwin [ 856 - pkgs.darwin.apple_sdk.frameworks.Foundation 857 - pkgs.darwin.apple_sdk.frameworks.Carbon 858 - pkgs.darwin.apple_sdk.frameworks.IOKit 859 - ] ++ (drv.librarySystemDepends or []); 860 - }); 861 734 862 735 # set more accurate set of platforms instead of maintaining 863 736 # an ever growing list of platforms to exclude via unsupported-platforms
+3
pkgs/development/haskell-modules/default.nix
··· 8 8 , configurationCommon ? import ./configuration-common.nix 9 9 , configurationNix ? import ./configuration-nix.nix 10 10 , configurationArm ? import ./configuration-arm.nix 11 + , configurationDarwin ? import ./configuration-darwin.nix 11 12 }: 12 13 13 14 let ··· 23 24 isArm = with stdenv.hostPlatform; isAarch64 || isAarch32; 24 25 platformConfigurations = lib.optionals isArm [ 25 26 (configurationArm { inherit pkgs haskellLib; }) 27 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ 28 + (configurationDarwin { inherit pkgs haskellLib; }) 26 29 ]; 27 30 28 31 extensions = lib.composeManyExtensions ([