2015-09-15 10:26:18 +01:00
|
|
|
{ stdenv, fetchurl, cmake, bash, unzip, glibc, openssl, gcc, mesa, freetype, xorg, alsaLib, cairo }:
|
2014-08-05 14:37:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-09-25 21:46:20 +01:00
|
|
|
|
2015-08-08 07:22:07 +01:00
|
|
|
version = "2015.08.06";
|
2014-09-25 21:46:20 +01:00
|
|
|
|
|
|
|
name = "pharo-vm-core-i386-${version}";
|
2014-08-05 14:37:56 +01:00
|
|
|
system = "x86_32-linux";
|
|
|
|
src = fetchurl {
|
2014-09-25 21:46:20 +01:00
|
|
|
url = "http://files.pharo.org/vm/src/vm-unix-sources/blessed/pharo-vm-${version}.tar.bz2";
|
2015-08-08 07:22:07 +01:00
|
|
|
sha256 = "1kmb6phxb94d37awwldwbkj704l6m0c6sv0m54mcz6d4rx41fqgp";
|
2014-08-05 14:37:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
sources10Zip = fetchurl {
|
|
|
|
url = http://files.pharo.org/sources/PharoV10.sources.zip;
|
2015-04-17 14:49:26 +01:00
|
|
|
sha256 = "0aijhr3w5w3jzmnpl61g6xkwyi2l1mxy0qbvr9k3whz8zlrsijh2";
|
2014-08-05 14:37:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
sources20Zip = fetchurl {
|
|
|
|
url = http://files.pharo.org/sources/PharoV20.sources.zip;
|
2015-04-17 14:49:26 +01:00
|
|
|
sha256 = "1xsc0p361pp8iha5zckppw29sbapd706wbvzvgjnkv2n6n1q5gj7";
|
2014-08-05 14:37:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
sources30Zip = fetchurl {
|
|
|
|
url = http://files.pharo.org/sources/PharoV30.sources.zip;
|
2015-04-17 14:49:26 +01:00
|
|
|
sha256 = "08d9a7gggwpwgrfbp7iv5896jgqz3vgjfrq19y3jw8k10pva98ak";
|
|
|
|
};
|
|
|
|
|
|
|
|
sources40Zip = fetchurl {
|
|
|
|
url = http://files.pharo.org/sources/PharoV40.sources.zip;
|
|
|
|
sha256 = "1xq1721ql19hpgr8ir372h92q7g8zwd6k921b21dap4wf8djqnpd";
|
2014-08-05 14:37:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
2014-08-10 08:01:58 +01:00
|
|
|
cp -R "$resources/"* "$prefix/"
|
2014-08-05 14:37:56 +01:00
|
|
|
|
|
|
|
mkdir $prefix/bin
|
|
|
|
|
|
|
|
chmod u+w $prefix/bin
|
|
|
|
cat > $prefix/bin/pharo-vm-x <<EOF
|
|
|
|
#!${bash}/bin/bash
|
|
|
|
|
|
|
|
# disable parameter expansion to forward all arguments unprocessed to the VM
|
|
|
|
set -f
|
|
|
|
|
|
|
|
exec $prefix/lib/pharo-vm/pharo-vm "\$@"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat > $prefix/bin/pharo-vm-nox <<EOF
|
|
|
|
#!${bash}/bin/bash
|
|
|
|
|
|
|
|
# disable parameter expansion to forward all arguments unprocessed to the VM
|
|
|
|
set -f
|
|
|
|
|
|
|
|
exec $prefix/lib/pharo-vm/pharo-vm -vm-display-null "\$@"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $prefix/bin/pharo-vm-x $prefix/bin/pharo-vm-nox
|
|
|
|
|
|
|
|
unzip ${sources10Zip} -d $prefix/lib/pharo-vm/
|
|
|
|
unzip ${sources20Zip} -d $prefix/lib/pharo-vm/
|
|
|
|
unzip ${sources30Zip} -d $prefix/lib/pharo-vm/
|
2015-04-17 14:49:26 +01:00
|
|
|
unzip ${sources40Zip} -d $prefix/lib/pharo-vm/
|
2014-08-05 14:37:56 +01:00
|
|
|
'';
|
|
|
|
|
2015-09-15 10:26:18 +01:00
|
|
|
buildInputs = [ bash unzip cmake glibc openssl gcc mesa freetype xorg.libX11 xorg.libICE xorg.libSM alsaLib cairo ];
|
2014-08-10 08:51:02 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Clean and innovative Smalltalk-inspired environment";
|
|
|
|
longDescription = ''
|
|
|
|
Pharo's goal is to deliver a clean, innovative, free open-source
|
|
|
|
Smalltalk-inspired environment. By providing a stable and small core
|
|
|
|
system, excellent dev tools, and maintained releases, Pharo is an
|
|
|
|
attractive platform to build and deploy mission critical applications.
|
|
|
|
|
|
|
|
This package provides the executable VM. You should probably not care
|
|
|
|
about this package (which represents a packaging detail) and have a
|
|
|
|
look at the pharo-vm-core package instead.
|
|
|
|
|
|
|
|
Please fill bug reports on http://bugs.pharo.org under the 'Ubuntu
|
|
|
|
packaging (ppa:pharo/stable)' project.
|
|
|
|
'';
|
|
|
|
homepage = http://pharo.org;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-08-10 14:57:24 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.DamienCassou ];
|
2014-08-10 08:51:02 +01:00
|
|
|
platforms = stdenv.lib.platforms.mesaPlatforms;
|
|
|
|
};
|
2014-10-09 15:52:21 +01:00
|
|
|
}
|