{ stdenv, fetchurl, cmake, bash, unzip, glibc, openssl, gcc, mesa, freetype, xlibs, alsaLib, cairo }: stdenv.mkDerivation rec { version = "2014.10.28"; name = "pharo-vm-core-i386-${version}"; system = "x86_32-linux"; src = fetchurl { url = "http://files.pharo.org/vm/src/vm-unix-sources/blessed/pharo-vm-${version}.tar.bz2"; md5 = "c1d25d5beac15dc8e5bd3f84ab9b0ac3"; }; sources10Zip = fetchurl { url = http://files.pharo.org/sources/PharoV10.sources.zip; md5 = "3476222a0345a6f8f8b6093b5e3b30fb"; }; sources20Zip = fetchurl { url = http://files.pharo.org/sources/PharoV20.sources.zip; md5 = "a145b0733f9d68d9ce6a76270b6b9ec8"; }; sources30Zip = fetchurl { url = http://files.pharo.org/sources/PharoV30.sources.zip; md5 = "bb0a66b8968ef7d0da97ec86331f68c8"; }; # Building preConfigure = '' cd build/ ''; resources = ./resources; installPhase = '' echo Current directory $(pwd) echo Creating prefix "$prefix" mkdir -p "$prefix/lib/pharo-vm" cd ../../results mv vm-display-null vm-display-null.so mv vm-display-X11 vm-display-X11.so mv vm-sound-null vm-sound-null.so mv vm-sound-ALSA vm-sound-ALSA.so mv pharo pharo-vm cp * "$prefix/lib/pharo-vm" cp -R "$resources/"* "$prefix/" mkdir $prefix/bin chmod u+w $prefix/bin cat > $prefix/bin/pharo-vm-x < $prefix/bin/pharo-vm-nox <