duktape: fix darwin build

This commit is contained in:
Ben Siraphob 2021-03-08 21:48:12 +07:00
parent a903fedd90
commit dc2e30b7af

View file

@ -8,6 +8,14 @@ stdenv.mkDerivation rec {
sha256 = "19szwxzvl2g65fw95ggvb8h0ma5bd9vvnnccn59hwnc4dida1x4n";
};
postPatch = ''
substituteInPlace Makefile.sharedlibrary \
--replace 'gcc' '${stdenv.cc.targetPrefix}cc' \
--replace 'g++' '${stdenv.cc.targetPrefix}c++'
substituteInPlace Makefile.cmdline \
--replace 'gcc' '${stdenv.cc.targetPrefix}cc' \
--replace 'g++' '${stdenv.cc.targetPrefix}c++'
'';
buildPhase = ''
make -f Makefile.sharedlibrary
make -f Makefile.cmdline
@ -27,6 +35,6 @@ stdenv.mkDerivation rec {
downloadPage = "https://duktape.org/download.html";
license = licenses.mit;
maintainers = [ maintainers.fgaz ];
platforms = platforms.linux;
platforms = platforms.all;
};
}