@@ -1,5 +1,5 @@
11{ stdenv, lib, callPackage, perl, fetchurl, python2
2−, pkgconfig, spidermonkey_31, boost, icu, libxml2, libpng
2+, pkgconfig, spidermonkey_38, boost, icu, libxml2, libpng
33, libjpeg, zlib, curl, libogg, libvorbis, enet, miniupnpc
44, openal, mesa, xproto, libX11, libXcursor, nspr, SDL, SDL2
55, gloox, nvidia-texture-tools
@@ -10,17 +10,17 @@ assert withEditor -> wxGTK != null;
1010
1111stdenv.mkDerivation rec {
1212 name = "0ad-${version}";
13− version = "0.0.20";
13+ version = "0.0.21";
1414
1515 src = fetchurl {
1616 url = "http://releases.wildfiregames.com/0ad-${version}-alpha-unix-build.tar.xz";
17− sha256 = "13n61xhjsawda3kl7112la41bqkbqmq4yhr3slydsz856z5xb5m3";
17+ sha256 = "1kw3hqnr737ipx4f03khz3hvsh3ha7r8iy9njppk2faa53j27gln";
1818 };
1919
2020 nativeBuildInputs = [ python2 perl pkgconfig ];
2121
2222 buildInputs = [
23− spidermonkey_31 boost icu libxml2 libpng libjpeg
23+ spidermonkey_38 boost icu libxml2 libpng libjpeg
2424 zlib curl libogg libvorbis enet miniupnpc openal
2525 mesa xproto libX11 libXcursor nspr SDL2 gloox
2626 nvidia-texture-tools
@@ -44,11 +44,16 @@ stdenv.mkDerivation rec {
4444 # Delete shipped libraries which we don't need.
4545 rm -rf libraries/source/{enet,miniupnpc,nvtt,spidermonkey}
4646
47+ # Workaround invalid pkgconfig name for mozjs
48+ mkdir pkgconfig
49+ ln -s ${spidermonkey_38}/lib/pkgconfig/* pkgconfig/mozjs-38.pc
50+ PKG_CONFIG_PATH="$PWD/pkgconfig:$PKG_CONFIG_PATH"
51+
4752 # Update Makefiles
4853 pushd build/workspaces
4954 ./update-workspaces.sh \
5055 --with-system-nvtt \
51− --with-system-mozjs31 \
56+ --with-system-mozjs38 \
5257 ${lib.optionalString withEditor "--enable-atlas"} \
5358 --bindir="$out"/bin \
5459 --libdir="$out"/lib/0ad \