Merge pull request #33358 from obsidiansystems/cross-haskell-samehash
haskell infra, ghc: Start to fix cross compilation without changing hashes
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
{ haskellPackages, src, deps ? p : [], name }: let
|
||||
inherit (haskellPackages) ghc ghcWithPackages;
|
||||
with-env = ghcWithPackages deps;
|
||||
crossPrefix = if (ghc.cross or null) != null then "${ghc.cross.config}-" else "";
|
||||
ghcName = "${crossPrefix}ghc";
|
||||
ghcName = "${ghc.targetPrefix}ghc";
|
||||
in runCommand name { buildInputs = [ with-env cctools ]; } ''
|
||||
mkdir -p $out/lib
|
||||
mkdir -p $out/include
|
||||
|
||||
Reference in New Issue
Block a user