mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
emscripten: make emconfigure use wrapped binaries
This commit is contained in:
parent
bc9760b842
commit
fc0f11e3d5
1 changed files with 8 additions and 3 deletions
|
@ -33,8 +33,6 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ nodejs python3 ];
|
||||
|
||||
outputs = [ "out" "appdir" ];
|
||||
|
||||
buildPhase = ''
|
||||
patchShebangs .
|
||||
|
||||
|
@ -57,10 +55,17 @@ stdenv.mkDerivation rec {
|
|||
# to make the test(s) below work
|
||||
# echo "SPIDERMONKEY_ENGINE = []" >> .emscripten
|
||||
echo "BINARYEN_ROOT = '${binaryen}'" >> .emscripten
|
||||
|
||||
# make emconfigure/emcmake use the correct (wrapped) binaries
|
||||
sed -i "s|^EMCC =.*|EMCC='$out/bin/emcc'|" tools/shared.py
|
||||
sed -i "s|^EMXX =.*|EMXX='$out/bin/em++'|" tools/shared.py
|
||||
sed -i "s|^EMAR =.*|EMAR='$out/bin/emar'|" tools/shared.py
|
||||
sed -i "s|^EMRANLIB =.*|EMRANLIB='$out/bin/emranlib'|" tools/shared.py
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
rm -rf cache
|
||||
appdir=$out/share/emscripten
|
||||
mkdir -p $appdir
|
||||
cp -r . $appdir
|
||||
chmod -R +w $appdir
|
||||
|
||||
|
|
Loading…
Reference in a new issue