Skip to content

Commit 921f5db

Browse files
haskellPackages.llvmPackages: drop
There’s no sensible notion of a Haskell package set’s LLVM, only a GHC’s LLVM. `haskellPackages.ghc.llvmPackages` is still accessible, although you probably don’t actually want to use it very often. Co-authored-by: sternenseemann <sternenseemann@systemli.org>
1 parent fab98a0 commit 921f5db

10 files changed

Lines changed: 3 additions & 19 deletions

pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ in
1313

1414
self: super: {
1515

16-
llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
17-
1816
# Disable GHC 9.0.x core libraries.
1917
array = null;
2018
base = null;

pkgs/development/haskell-modules/configuration-ghc-9.10.x.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ let
1616
in
1717

1818
{
19-
llvmPackages = lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
20-
2119
# Disable GHC core libraries
2220
array = null;
2321
base = null;

pkgs/development/haskell-modules/configuration-ghc-9.12.x.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ in
1616
with haskellLib;
1717

1818
{
19-
llvmPackages = lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
20-
2119
# Disable GHC core libraries
2220
array = null;
2321
base = null;

pkgs/development/haskell-modules/configuration-ghc-9.14.x.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ let
66
in
77

88
self: super: {
9-
llvmPackages = lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
10-
119
# Disable GHC core libraries
1210
array = null;
1311
base = null;

pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ in
1313

1414
self: super: {
1515

16-
llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
17-
1816
# Disable GHC 9.2.x core libraries.
1917
array = null;
2018
base = null;

pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ in
66

77
with haskellLib;
88
self: super: {
9-
llvmPackages = lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
10-
119
# Disable GHC core libraries.
1210
array = null;
1311
base = null;

pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ let
1616
in
1717

1818
{
19-
llvmPackages = lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
20-
2119
# Disable GHC core libraries
2220
array = null;
2321
base = null;

pkgs/development/haskell-modules/configuration-ghc-9.8.x.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ in
1818

1919
{
2020

21-
llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
22-
2321
# Disable GHC core libraries.
2422
array = null;
2523
base = null;

pkgs/development/haskell-modules/make-package-set.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,6 @@ package-set { inherit pkgs lib callPackage; } self
734734
*/
735735
forceLlvmCodegenBackend = overrideCabal (drv: {
736736
configureFlags = drv.configureFlags or [ ] ++ [ "--ghc-option=-fllvm" ];
737-
buildTools = drv.buildTools or [ ] ++ [ self.llvmPackages.llvm ];
737+
buildTools = drv.buildTools or [ ] ++ [ self.ghc.llvmPackages.llvm ];
738738
});
739739
}

pkgs/development/haskell-modules/with-packages-wrapper.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ selectPackages:
4444
# fi
4545

4646
let
47-
inherit (haskellPackages) llvmPackages ghc;
47+
inherit (haskellPackages) ghc;
4848

4949
hoogleWithPackages' = if withHoogle then hoogleWithPackages selectPackages else null;
5050

@@ -71,7 +71,7 @@ let
7171
# CLang is needed on Darwin for -fllvm to work:
7272
# https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/codegens.html#llvm-code-generator-fllvm
7373
llvm = lib.makeBinPath (
74-
[ llvmPackages.llvm ] ++ lib.optional stdenv.targetPlatform.isDarwin llvmPackages.clang
74+
[ ghc.llvmPackages.llvm ] ++ lib.optional stdenv.targetPlatform.isDarwin ghc.llvmPackages.clang
7575
);
7676
in
7777

0 commit comments

Comments
 (0)