duktape: fix darwin build
This commit is contained in:
parent
a903fedd90
commit
dc2e30b7af
@ -8,6 +8,14 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "19szwxzvl2g65fw95ggvb8h0ma5bd9vvnnccn59hwnc4dida1x4n";
|
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 = ''
|
buildPhase = ''
|
||||||
make -f Makefile.sharedlibrary
|
make -f Makefile.sharedlibrary
|
||||||
make -f Makefile.cmdline
|
make -f Makefile.cmdline
|
||||||
@ -27,6 +35,6 @@ stdenv.mkDerivation rec {
|
|||||||
downloadPage = "https://duktape.org/download.html";
|
downloadPage = "https://duktape.org/download.html";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.fgaz ];
|
maintainers = [ maintainers.fgaz ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user