Fix 'ghcWithPackages' as per https://github.com/NixOS/nixpkgs/issues/32082
This commit is contained in:
parent
d90165c7db
commit
dc0e594451
@ -43,7 +43,7 @@ let
|
|||||||
libDir = if isHaLVM then "$out/lib/HaLVM-${ghc.version}" else "$out/lib/${ghcCommand}-${ghc.version}";
|
libDir = if isHaLVM then "$out/lib/HaLVM-${ghc.version}" else "$out/lib/${ghcCommand}-${ghc.version}";
|
||||||
docDir = "$out/share/doc/ghc/html";
|
docDir = "$out/share/doc/ghc/html";
|
||||||
packageCfgDir = "${libDir}/package.conf.d";
|
packageCfgDir = "${libDir}/package.conf.d";
|
||||||
paths = lib.filter (x: x ? isHaskellLibrary) (lib.closePropagation packages);
|
paths = map lib.getLib (lib.filter (x: x ? isHaskellLibrary) (lib.closePropagation packages));
|
||||||
hasLibraries = lib.any (x: x.isHaskellLibrary) paths;
|
hasLibraries = lib.any (x: x.isHaskellLibrary) paths;
|
||||||
# CLang is needed on Darwin for -fllvm to work:
|
# CLang is needed on Darwin for -fllvm to work:
|
||||||
# https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/code-generators.html
|
# https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/code-generators.html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user