File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -799,19 +799,17 @@ stdenv.mkDerivation (rec {
799
799
then ''
800
800
mkdir $out
801
801
cp -r _build/stage1/bin $out
802
- ${
803
- # These are needed when building the reinstallable lib ghc
804
- if targetPlatform . isMusl
805
- then ''
806
- cp _build/stageBoot/bin/genprimopcode $out/bin
807
- cp _build/stageBoot/bin/deriveConstants $out/bin
808
- '' else ''
809
- cp _build/stageBoot/bin/${ targetPrefix } genprimopcode $out/bin
810
- ln -s $out/bin/${ targetPrefix } genprimopcode $out/bin/genprimopcode
811
- cp _build/stageBoot/bin/${ targetPrefix } deriveConstants $out/bin
812
- ln -s $out/bin/${ targetPrefix } deriveConstants $out/bin/deriveConstants
813
- ''
814
- }
802
+ # let's assume that if we find a non-prefixed genprimop,
803
+ # we also find a non-prefixed deriveConstants
804
+ if [ -f _build/stage1/bin/genprimopcode ]; then
805
+ cp _build/stageBoot/bin/genprimopcode $out/bin
806
+ cp _build/stageBoot/bin/deriveConstants $out/bin
807
+ else
808
+ cp _build/stageBoot/bin/${ targetPrefix } genprimopcode $out/bin
809
+ ln -s $out/bin/${ targetPrefix } genprimopcode $out/bin/genprimopcode
810
+ cp _build/stageBoot/bin/${ targetPrefix } deriveConstants $out/bin
811
+ ln -s $out/bin/${ targetPrefix } deriveConstants $out/bin/deriveConstants
812
+ fi
815
813
cp -r _build/stage1/lib $out
816
814
mkdir $doc
817
815
cp -r _build/stage1/share $doc
You can’t perform that action at this time.
0 commit comments