{ stdenv, fetchurl, cmake, bash, unzip, glibc, openssl, gcc, mesa, freetype, xlibs, alsaLib, cairo }: stdenv.mkDerivation rec { version = "2015.08.06"; 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"; sha256 = "1kmb6phxb94d37awwldwbkj704l6m0c6sv0m54mcz6d4rx41fqgp"; }; sources10Zip = fetchurl { url = http://files.pharo.org/sources/PharoV10.sources.zip; sha256 = "0aijhr3w5w3jzmnpl61g6xkwyi2l1mxy0qbvr9k3whz8zlrsijh2"; }; sources20Zip = fetchurl { url = http://files.pharo.org/sources/PharoV20.sources.zip; sha256 = "1xsc0p361pp8iha5zckppw29sbapd706wbvzvgjnkv2n6n1q5gj7"; }; sources30Zip = fetchurl { url = http://files.pharo.org/sources/PharoV30.sources.zip; sha256 = "08d9a7gggwpwgrfbp7iv5896jgqz3vgjfrq19y3jw8k10pva98ak"; }; sources40Zip = fetchurl { url = http://files.pharo.org/sources/PharoV40.sources.zip; sha256 = "1xq1721ql19hpgr8ir372h92q7g8zwd6k921b21dap4wf8djqnpd"; }; # 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 <