mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
haskell.compiler: ghc922 -> ghc923
https://www.haskell.org/ghc/download_ghc_9_2_3.html Since the tarball is generated by Hadrian, neither autoreconf nor ./boot is executed so ./configure and ghc.mk is missing.
This commit is contained in:
parent
7dc61b9991
commit
90099ac5fa
@ -120,7 +120,7 @@ rec {
|
|||||||
Example:
|
Example:
|
||||||
mkPackageOption pkgs "GHC" {
|
mkPackageOption pkgs "GHC" {
|
||||||
default = [ "ghc" ];
|
default = [ "ghc" ];
|
||||||
example = "pkgs.haskell.package.ghc922.ghc.withPackages (hkgs: [ hkgs.primes ])";
|
example = "pkgs.haskell.package.ghc923.ghc.withPackages (hkgs: [ hkgs.primes ])";
|
||||||
}
|
}
|
||||||
=> { _type = "option"; default = «derivation /nix/store/jxx55cxsjrf8kyh3fp2ya17q99w7541r-ghc-8.10.7.drv»; defaultText = { ... }; description = "The GHC package to use."; example = { ... }; type = { ... }; }
|
=> { _type = "option"; default = «derivation /nix/store/jxx55cxsjrf8kyh3fp2ya17q99w7541r-ghc-8.10.7.drv»; defaultText = { ... }; description = "The GHC package to use."; example = { ... }; type = { ... }; }
|
||||||
*/
|
*/
|
||||||
|
@ -120,14 +120,14 @@ lib.mkOption {
|
|||||||
```nix
|
```nix
|
||||||
lib.mkPackageOption pkgs "GHC" {
|
lib.mkPackageOption pkgs "GHC" {
|
||||||
default = [ "ghc" ];
|
default = [ "ghc" ];
|
||||||
example = "pkgs.haskell.package.ghc922.ghc.withPackages (hkgs: [ hkgs.primes ])";
|
example = "pkgs.haskell.package.ghc923.ghc.withPackages (hkgs: [ hkgs.primes ])";
|
||||||
}
|
}
|
||||||
# is like
|
# is like
|
||||||
lib.mkOption {
|
lib.mkOption {
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
default = pkgs.ghc;
|
default = pkgs.ghc;
|
||||||
defaultText = lib.literalExpression "pkgs.ghc";
|
defaultText = lib.literalExpression "pkgs.ghc";
|
||||||
example = lib.literalExpression "pkgs.haskell.package.ghc922.ghc.withPackages (hkgs: [ hkgs.primes ])";
|
example = lib.literalExpression "pkgs.haskell.package.ghc923.ghc.withPackages (hkgs: [ hkgs.primes ])";
|
||||||
description = "The GHC package to use.";
|
description = "The GHC package to use.";
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -183,14 +183,14 @@ lib.mkOption {
|
|||||||
<programlisting language="bash">
|
<programlisting language="bash">
|
||||||
lib.mkPackageOption pkgs "GHC" {
|
lib.mkPackageOption pkgs "GHC" {
|
||||||
default = [ "ghc" ];
|
default = [ "ghc" ];
|
||||||
example = "pkgs.haskell.package.ghc922.ghc.withPackages (hkgs: [ hkgs.primes ])";
|
example = "pkgs.haskell.package.ghc923.ghc.withPackages (hkgs: [ hkgs.primes ])";
|
||||||
}
|
}
|
||||||
# is like
|
# is like
|
||||||
lib.mkOption {
|
lib.mkOption {
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
default = pkgs.ghc;
|
default = pkgs.ghc;
|
||||||
defaultText = lib.literalExpression "pkgs.ghc";
|
defaultText = lib.literalExpression "pkgs.ghc";
|
||||||
example = lib.literalExpression "pkgs.haskell.package.ghc922.ghc.withPackages (hkgs: [ hkgs.primes ])";
|
example = lib.literalExpression "pkgs.haskell.package.ghc923.ghc.withPackages (hkgs: [ hkgs.primes ])";
|
||||||
description = "The GHC package to use.";
|
description = "The GHC package to use.";
|
||||||
}
|
}
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
, xattr, autoSignDarwinBinariesHook
|
, xattr, autoSignDarwinBinariesHook
|
||||||
, bash
|
, bash
|
||||||
|
|
||||||
|
, autoreconfHook # GHC 9.2.3 tarballs don't have autoconf run on them
|
||||||
|
|
||||||
, libiconv ? null, ncurses
|
, libiconv ? null, ncurses
|
||||||
, glibcLocales ? null
|
, glibcLocales ? null
|
||||||
|
|
||||||
@ -171,12 +173,12 @@ assert buildTargetLlvmPackages.llvm == llvmPackages.llvm;
|
|||||||
assert stdenv.targetPlatform.isDarwin -> buildTargetLlvmPackages.clang == llvmPackages.clang;
|
assert stdenv.targetPlatform.isDarwin -> buildTargetLlvmPackages.clang == llvmPackages.clang;
|
||||||
|
|
||||||
stdenv.mkDerivation (rec {
|
stdenv.mkDerivation (rec {
|
||||||
version = "9.2.2";
|
version = "9.2.3";
|
||||||
pname = "${targetPrefix}ghc${variantSuffix}";
|
pname = "${targetPrefix}ghc${variantSuffix}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://downloads.haskell.org/ghc/${version}/ghc-${version}-src.tar.xz";
|
url = "https://downloads.haskell.org/ghc/${version}/ghc-${version}-src.tar.xz";
|
||||||
sha256 = "902463a4cc6ee479af9358b9f8b2ee3237b03e934a1ea65b6d1fcf3e0d749ea6";
|
sha256 = "50ecdc2bef013e518f9a62a15245d7db0e4409d737c43b1cea7306fd82e1669e";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
@ -218,6 +220,9 @@ stdenv.mkDerivation (rec {
|
|||||||
'' + ''
|
'' + ''
|
||||||
|
|
||||||
echo -n "${buildMK}" > mk/build.mk
|
echo -n "${buildMK}" > mk/build.mk
|
||||||
|
# GHC 9.2.3 tarball is not properly prepared
|
||||||
|
./boot
|
||||||
|
|
||||||
sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure
|
sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure
|
||||||
'' + lib.optionalString (stdenv.isLinux && hostPlatform.libc == "glibc") ''
|
'' + lib.optionalString (stdenv.isLinux && hostPlatform.libc == "glibc") ''
|
||||||
export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive"
|
export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive"
|
||||||
@ -283,6 +288,7 @@ stdenv.mkDerivation (rec {
|
|||||||
dontAddExtraLibs = true;
|
dontAddExtraLibs = true;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
autoreconfHook # GHC 9.2.3 tarball hasn't autoconf run on it
|
||||||
perl autoconf automake m4 python3
|
perl autoconf automake m4 python3
|
||||||
ghc bootPkgs.alex bootPkgs.happy bootPkgs.hscolour
|
ghc bootPkgs.alex bootPkgs.happy bootPkgs.hscolour
|
||||||
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
|
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
|
@ -1,6 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, supportedGhcVersions ? [ "884" "8107" "902" "922" ]
|
, supportedGhcVersions ? [ "884" "8107" "902" "923" ]
|
||||||
, dynamic ? false
|
, dynamic ? false
|
||||||
, haskellPackages
|
, haskellPackages
|
||||||
, haskell
|
, haskell
|
||||||
@ -8,7 +8,7 @@
|
|||||||
#
|
#
|
||||||
# The recommended way to override this package is
|
# The recommended way to override this package is
|
||||||
#
|
#
|
||||||
# pkgs.haskell-language-server.override { supportedGhcVersions = [ "901" ]; }
|
# pkgs.haskell-language-server.override { supportedGhcVersions = [ "902" ]; }
|
||||||
#
|
#
|
||||||
# for example. Read more about this in the haskell-language-server section of the nixpkgs manual.
|
# for example. Read more about this in the haskell-language-server section of the nixpkgs manual.
|
||||||
#
|
#
|
||||||
|
@ -14281,7 +14281,7 @@ with pkgs;
|
|||||||
stdenv = clangStdenv;
|
stdenv = clangStdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
jacinda = haskell.lib.compose.justStaticExecutables haskell.packages.ghc922.jacinda;
|
jacinda = haskell.lib.compose.justStaticExecutables haskell.packages.ghc923.jacinda;
|
||||||
|
|
||||||
janet = callPackage ../development/interpreters/janet {};
|
janet = callPackage ../development/interpreters/janet {};
|
||||||
|
|
||||||
|
@ -13,13 +13,13 @@ let
|
|||||||
"integer-simple"
|
"integer-simple"
|
||||||
"native-bignum"
|
"native-bignum"
|
||||||
"ghc902"
|
"ghc902"
|
||||||
"ghc922"
|
"ghc923"
|
||||||
"ghcHEAD"
|
"ghcHEAD"
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBignumIncludes = [
|
nativeBignumIncludes = [
|
||||||
"ghc902"
|
"ghc902"
|
||||||
"ghc922"
|
"ghc923"
|
||||||
"ghcHEAD"
|
"ghcHEAD"
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ in {
|
|||||||
buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
|
buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
|
||||||
llvmPackages = pkgs.llvmPackages_12;
|
llvmPackages = pkgs.llvmPackages_12;
|
||||||
};
|
};
|
||||||
ghc922 = callPackage ../development/compilers/ghc/9.2.2.nix {
|
ghc923 = callPackage ../development/compilers/ghc/9.2.3.nix {
|
||||||
bootPkgs =
|
bootPkgs =
|
||||||
# aarch64 ghc8107Binary exceeds max output size on hydra
|
# aarch64 ghc8107Binary exceeds max output size on hydra
|
||||||
if stdenv.isAarch64 || stdenv.isAarch32 then
|
if stdenv.isAarch64 || stdenv.isAarch32 then
|
||||||
@ -227,9 +227,9 @@ in {
|
|||||||
ghc = bh.compiler.ghc902;
|
ghc = bh.compiler.ghc902;
|
||||||
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.0.x.nix { };
|
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.0.x.nix { };
|
||||||
};
|
};
|
||||||
ghc922 = callPackage ../development/haskell-modules {
|
ghc923 = callPackage ../development/haskell-modules {
|
||||||
buildHaskellPackages = bh.packages.ghc922;
|
buildHaskellPackages = bh.packages.ghc923;
|
||||||
ghc = bh.compiler.ghc922;
|
ghc = bh.compiler.ghc923;
|
||||||
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { };
|
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { };
|
||||||
};
|
};
|
||||||
ghcHEAD = callPackage ../development/haskell-modules {
|
ghcHEAD = callPackage ../development/haskell-modules {
|
||||||
|
@ -52,7 +52,7 @@ let
|
|||||||
ghc884
|
ghc884
|
||||||
ghc8107
|
ghc8107
|
||||||
ghc902
|
ghc902
|
||||||
ghc922
|
ghc923
|
||||||
];
|
];
|
||||||
|
|
||||||
# packagePlatforms applied to `haskell.packages.*`
|
# packagePlatforms applied to `haskell.packages.*`
|
||||||
@ -329,8 +329,8 @@ let
|
|||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
haskell.packages.native-bignum.ghc922 = {
|
haskell.packages.native-bignum.ghc923 = {
|
||||||
inherit (packagePlatforms pkgs.pkgsStatic.haskell.packages.native-bignum.ghc922)
|
inherit (packagePlatforms pkgs.pkgsStatic.haskell.packages.native-bignum.ghc923)
|
||||||
hello
|
hello
|
||||||
lens
|
lens
|
||||||
random
|
random
|
||||||
@ -442,11 +442,11 @@ let
|
|||||||
jobs.pkgsMusl.haskell.compiler.ghc884
|
jobs.pkgsMusl.haskell.compiler.ghc884
|
||||||
jobs.pkgsMusl.haskell.compiler.ghc8107
|
jobs.pkgsMusl.haskell.compiler.ghc8107
|
||||||
jobs.pkgsMusl.haskell.compiler.ghc902
|
jobs.pkgsMusl.haskell.compiler.ghc902
|
||||||
jobs.pkgsMusl.haskell.compiler.ghc922
|
jobs.pkgsMusl.haskell.compiler.ghc923
|
||||||
jobs.pkgsMusl.haskell.compiler.ghcHEAD
|
jobs.pkgsMusl.haskell.compiler.ghcHEAD
|
||||||
jobs.pkgsMusl.haskell.compiler.integer-simple.ghc8107
|
jobs.pkgsMusl.haskell.compiler.integer-simple.ghc8107
|
||||||
jobs.pkgsMusl.haskell.compiler.native-bignum.ghc902
|
jobs.pkgsMusl.haskell.compiler.native-bignum.ghc902
|
||||||
jobs.pkgsMusl.haskell.compiler.native-bignum.ghc922
|
jobs.pkgsMusl.haskell.compiler.native-bignum.ghc923
|
||||||
jobs.pkgsMusl.haskell.compiler.native-bignum.ghcHEAD
|
jobs.pkgsMusl.haskell.compiler.native-bignum.ghcHEAD
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@ -462,7 +462,7 @@ let
|
|||||||
};
|
};
|
||||||
constituents = accumulateDerivations [
|
constituents = accumulateDerivations [
|
||||||
jobs.pkgsStatic.haskellPackages
|
jobs.pkgsStatic.haskellPackages
|
||||||
jobs.pkgsStatic.haskell.packages.native-bignum.ghc922
|
jobs.pkgsStatic.haskell.packages.native-bignum.ghc923
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user