···3030 androidndk = androidComposition.ndk-bundle;
3131 targetAndroidndkPkgs = targetPackages.androidndkPkgs_18b;
3232 };
3333+3434+ "21" =
3535+ let
3636+ ndkVersion = "21.0.6113669";
3737+3838+ buildAndroidComposition = buildPackages.buildPackages.androidenv.composeAndroidPackages {
3939+ includeNDK = true;
4040+ inherit ndkVersion;
4141+ };
4242+4343+ androidComposition = androidenv.composeAndroidPackages {
4444+ includeNDK = true;
4545+ inherit ndkVersion;
4646+ };
4747+ in
4848+ import ./androidndk-pkgs.nix {
4949+ inherit (buildPackages)
5050+ makeWrapper;
5151+ inherit (pkgs)
5252+ stdenv
5353+ runCommand wrapBintoolsWith wrapCCWith;
5454+ # buildPackages.foo rather than buildPackages.buildPackages.foo would work,
5555+ # but for splicing messing up on infinite recursion for the variants we
5656+ # *dont't* use. Using this workaround, but also making a test to ensure
5757+ # these two really are the same.
5858+ buildAndroidndk = buildAndroidComposition.ndk-bundle;
5959+ androidndk = androidComposition.ndk-bundle;
6060+ targetAndroidndkPkgs = targetPackages.androidndkPkgs_21;
6161+ };
6262+3363}
+9-2
pkgs/development/compilers/ghc/8.10.1.nix
···6262 endif
6363 DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
6464 INTEGER_LIBRARY = ${if enableIntegerSimple then "integer-simple" else "integer-gmp"}
6565- '' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
6666- Stage1Only = ${if targetPlatform.system == hostPlatform.system then "NO" else "YES"}
6565+ ''
6666+ # We only need to build stage1 on most cross-compilation because
6767+ # we will be running the compiler on the native system. In some
6868+ # situations, like native Musl compilation, we need the compiler
6969+ # to actually link to our new Libc. The iOS simulator is a special
7070+ # exception because we can’t actually run simulators binaries
7171+ # ourselves.
7272+ + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
7373+ Stage1Only = ${if (targetPlatform.system == hostPlatform.system && !targetPlatform.isiOS) then "NO" else "YES"}
6774 CrossCompilePrefix = ${targetPrefix}
6875 HADDOCK_DOCS = NO
6976 BUILD_SPHINX_HTML = NO
+9-2
pkgs/development/compilers/ghc/8.6.5.nix
···5959 endif
6060 DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
6161 INTEGER_LIBRARY = ${if enableIntegerSimple then "integer-simple" else "integer-gmp"}
6262- '' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
6363- Stage1Only = ${if targetPlatform.system == hostPlatform.system then "NO" else "YES"}
6262+ ''
6363+ # We only need to build stage1 on most cross-compilation because
6464+ # we will be running the compiler on the native system. In some
6565+ # situations, like native Musl compilation, we need the compiler
6666+ # to actually link to our new Libc. The iOS simulator is a special
6767+ # exception because we can’t actually run simulators binaries
6868+ # ourselves.
6969+ + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
7070+ Stage1Only = ${if (targetPlatform.system == hostPlatform.system && !targetPlatform.isiOS) then "NO" else "YES"}
6471 CrossCompilePrefix = ${targetPrefix}
6572 HADDOCK_DOCS = NO
6673 BUILD_SPHINX_HTML = NO
+9-2
pkgs/development/compilers/ghc/8.8.2.nix
···5959 endif
6060 DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
6161 INTEGER_LIBRARY = ${if enableIntegerSimple then "integer-simple" else "integer-gmp"}
6262- '' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
6363- Stage1Only = ${if targetPlatform.system == hostPlatform.system then "NO" else "YES"}
6262+ ''
6363+ # We only need to build stage1 on most cross-compilation because
6464+ # we will be running the compiler on the native system. In some
6565+ # situations, like native Musl compilation, we need the compiler
6666+ # to actually link to our new Libc. The iOS simulator is a special
6767+ # exception because we can’t actually run simulators binaries
6868+ # ourselves.
6969+ + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
7070+ Stage1Only = ${if (targetPlatform.system == hostPlatform.system && !targetPlatform.isiOS) then "NO" else "YES"}
6471 CrossCompilePrefix = ${targetPrefix}
6572 HADDOCK_DOCS = NO
6673 BUILD_SPHINX_HTML = NO
+9-2
pkgs/development/compilers/ghc/8.8.3.nix
···6262 endif
6363 DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
6464 INTEGER_LIBRARY = ${if enableIntegerSimple then "integer-simple" else "integer-gmp"}
6565- '' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
6666- Stage1Only = ${if targetPlatform.system == hostPlatform.system then "NO" else "YES"}
6565+ ''
6666+ # We only need to build stage1 on most cross-compilation because
6767+ # we will be running the compiler on the native system. In some
6868+ # situations, like native Musl compilation, we need the compiler
6969+ # to actually link to our new Libc. The iOS simulator is a special
7070+ # exception because we can’t actually run simulators binaries
7171+ # ourselves.
7272+ + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
7373+ Stage1Only = ${if (targetPlatform.system == hostPlatform.system && !targetPlatform.isiOS) then "NO" else "YES"}
6774 CrossCompilePrefix = ${targetPrefix}
6875 HADDOCK_DOCS = NO
6976 BUILD_SPHINX_HTML = NO
+9-2
pkgs/development/compilers/ghc/8.8.4.nix
···6262 endif
6363 DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
6464 INTEGER_LIBRARY = ${if enableIntegerSimple then "integer-simple" else "integer-gmp"}
6565- '' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
6666- Stage1Only = ${if targetPlatform.system == hostPlatform.system then "NO" else "YES"}
6565+ ''
6666+ # We only need to build stage1 on most cross-compilation because
6767+ # we will be running the compiler on the native system. In some
6868+ # situations, like native Musl compilation, we need the compiler
6969+ # to actually link to our new Libc. The iOS simulator is a special
7070+ # exception because we can’t actually run simulators binaries
7171+ # ourselves.
7272+ + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
7373+ Stage1Only = ${if (targetPlatform.system == hostPlatform.system && !targetPlatform.isiOS) then "NO" else "YES"}
6774 CrossCompilePrefix = ${targetPrefix}
6875 HADDOCK_DOCS = NO
6976 BUILD_SPHINX_HTML = NO