1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
{ 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 <<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/
'';
buildInputs = [ bash unzip cmake glibc openssl gcc mesa freetype xlibs.libX11 xlibs.libICE xlibs.libSM alsaLib cairo ];
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;
maintainers = [ stdenv.lib.maintainers.DamienCassou ];
platforms = stdenv.lib.platforms.mesaPlatforms;
};
}
|