@@ -0,0 +1,44 @@
1+{ stdenv, fetchurl, cmake, coreutils, freetype, gnused, pkgconfig, which }:
2+
3+let version = "4.10.2.2614"; in
4+stdenv.mkDerivation rec {
5+ name = "squeak-${version}";
6+
7+ src = fetchurl {
8+ sha256 = "0bpwbnpy2sb4gylchfx50sha70z36bwgdxraym4vrr93l8pd3dix";
9+ url = "http://squeakvm.org/unix/release/Squeak-${version}-src.tar.gz";
10+ };
11+
12+ meta = with stdenv.lib; {
13+ inherit version;
14+ description = "Smalltalk programming language and environment";
15+ longDescription = ''
16+ Squeak is a full-featured implementation of the Smalltalk programming
17+ language and environment based on (and largely compatible with) the
18+ original Smalltalk-80 system. Squeak has very powerful 2- and 3-D
19+ graphics, sound, video, MIDI, animation and other multimedia
20+ capabilities. It also includes a customisable framework for creating
21+ dynamic HTTP servers and interactively extensible Web sites.
22+ '';
23+ homepage = http://squeakvm.org/;
24+ downloadPage = http://squeakvm.org/unix/index.html;
25+ license = with licenses; [ asl20 mit ];
26+ platforms = with platforms; linux;
27+ maintainers = with maintainers; [ nckx ];
28+ };
29+
30+ buildInputs = [ cmake coreutils freetype gnused pkgconfig which ];
31+
32+ postPatch = ''
33+ for i in squeak.in squeak.sh.in; do
34+ substituteInPlace unix/cmake/$i --replace "PATH=" \
35+ "PATH=${coreutils}/bin:${gnused}/bin:${which}/bin #"
36+ done
37+ '';
38+
39+ configurePhase = ''
40+ unix/cmake/configure --prefix=$out --enable-mpg-{mmx,pthreads}
41+ '';
42+
43+ enableParallelBuilding = true;
44+}