|
1 | 1 | { nixpkgsFunc ? import ./nixpkgs
|
2 | 2 | , system ? builtins.currentSystem
|
3 |
| -, config ? { } |
| 3 | +, config ? { |
| 4 | + android_sdk.accept_license = true; |
| 5 | + } |
4 | 6 | , enableLibraryProfiling ? false
|
5 | 7 | , enableExposeAllUnfoldings ? true
|
6 | 8 | , enableTraceReflexEvents ? false
|
|
27 | 29 | splices-load-save-nix = nixpkgs.fetchFromGitHub {
|
28 | 30 | owner = "obsidiansystems";
|
29 | 31 | repo = "splices-load-save.nix";
|
30 |
| - rev = "921812b408fb2ca3db72bb0e42d0655fbf28cbb0"; |
| 32 | + rev = "2ec45a6382e1a09fb13531ad8af1ffca596458b3"; |
31 | 33 | sha256 = "sha256-gSO+46bnyvFCG6fT5uLSSqUSfN+8t7pQnS2NBUlaRrM=";
|
32 | 34 | };
|
33 | 35 |
|
|
37 | 39 | haskell = super.haskell // {
|
38 | 40 | compiler = super.haskell.compiler // {
|
39 | 41 | ghcSplices-8_6 = (splices-src.patchGHC (super.haskell.compiler.ghc865) "ghc-8.6.5");
|
40 |
| - ghcSplices-8_10 = (splices-src.patchGHC (super.haskell.compiler.ghc8107) "ghc-8.10.7"); |
| 42 | + ghcSplices-8_10 = ((splices-src.patchGHC (super.haskell.compiler.ghc8107) "ghc-8.10.7").overrideAttrs (drv: { |
| 43 | + patches = [ ] ++ (drv.patches or [ ]); |
| 44 | + })).override { |
| 45 | + enableProfiledLibs = true; |
| 46 | + }; |
41 | 47 | ghcjsSplices-8_10 = splices-src.patchGHCJS (super.haskell.compiler.ghcjs810);
|
42 | 48 | };
|
43 | 49 | packages = super.haskell.packages // {
|
|
83 | 89 | lib.optionalAttrs (self.stdenv.hostPlatform != self.stdenv.buildPlatform) {
|
84 | 90 | postInstall = "
|
85 | 91 | rm $out/include/libcharset.h $out/include/localcharset.h ";
|
86 |
| - configureFlags = [ " - -disable-shared " " - -enable-static " ]; |
| 92 | + configureFlags = [ " --disable-shared " " --enable-static " ]; |
87 | 93 | });
|
88 | 94 | };
|
89 | 95 | zlib = super.zlib.override (lib.optionalAttrs
|
|
108 | 114 | ] ++ nixpkgsOverlays;
|
109 | 115 | config = config // {
|
110 | 116 | permittedInsecurePackages = (config.permittedInsecurePackages or [ ]) ++ [
|
111 |
| - " |
112 |
| - webkitgtk-2 .4 .11 " |
| 117 | + "webkitgtk-2.4.11" |
113 | 118 | ];
|
114 | 119 |
|
115 | 120 | # XCode needed for native macOS app
|
|
132 | 137 | aarch32 = {
|
133 | 138 | crossSystem = lib.systems.examples.armv7a-android-prebuilt // {
|
134 | 139 | # Choose an old version so it's easier to find phones to test on
|
135 |
| - sdkVer = " 23 "; |
| 140 | + sdkVer = "23"; |
136 | 141 | };
|
137 | 142 | };
|
138 | 143 | };
|
|
156 | 161 | };
|
157 | 162 | };
|
158 | 163 | # Back compat
|
159 |
| - arm64 = lib.warn " |
160 |
| - nixpkgsCross.ios.arm64 |
161 |
| - has |
162 |
| - been |
163 |
| - deprecated, using nixpkgsCross.ios.aarch64 instead." |
164 |
| - aarch64; |
| 164 | + arm64 = lib.warn "nixpkgsCross.ios.arm64 has been deprecated, using nixpkgsCross.ios.aarch64 instead." aarch64; |
165 | 165 | };
|
166 | 166 | ghcjs = nixpkgsFunc (nixpkgsArgs // {
|
167 | 167 | crossSystem = lib.systems.examples.ghcjs;
|
|
182 | 182 | # function which takes the old argument set and combining it. What a tongue
|
183 | 183 | # twister!
|
184 | 184 |
|
185 |
| - cabal2nixResult = src: builtins.trace "cabal2nixResult is deprecated; |
186 |
| - use ghc.haskellSrc2nix or ghc.callCabal2nix instead" |
| 185 | + cabal2nixResult = src: builtins.trace "cabal2nixResult is deprecated; use ghc.haskellSrc2nix or ghc.callCabal2nix instead" |
187 | 186 | (ghc.haskellSrc2nix {
|
188 | 187 | name = "for-unknown-package";
|
189 | 188 | src = "file://${src}";
|
|
0 commit comments