git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #4980 from henrytill/racket

racket: update to 6.1.1

commita6d991ea07ac93392199be56b0c2a7527d29d181 authorMichael Raskin <7c6f434c@mail.ru> dateThu 13 Nov 2014, 23:44 (12 years ago) parent419e96a67ee94b
1 file changed+32−23
pkgs/development/interpreters/racket/default.nix+32−23
pkgs/development/interpreters/racket/default.nix+32−23
@@ -1,38 +1,47 @@
1−{ stdenv, fetchurl, cairo, file, pango, glib, gtk
2−, which, libtool, makeWrapper, libjpeg, libpng
3−, fontconfig, liberation_ttf, sqlite, openssl } :
1+{ stdenv, fetchurl, cairo, file, fontconfig, glib, gtk, freefont_ttf
2+, libjpeg, libpng, libtool, makeWrapper, openssl, pango, sqlite, which } :
43
54stdenv.mkDerivation rec {
65 pname = "racket";
7− version = "6.1";
6+ version = "6.1.1";
87 name = "${pname}-${version}";
98
109 src = fetchurl {
1110 url = "http://mirror.racket-lang.org/installers/${version}/${name}-src.tgz";
12− sha256 = "fde283bf5899bb9266ce721db44631c9bac4a4864a7c3211de413fd9503178c6";
11+ sha256 = "090269522d20e7a5ce85d2251a126745746ebf5e87554c05efe03f3b7173da75";
1312 };
1413
15− # Various racket executables do run-time searches for these.
16− ffiSharedLibs = "${glib}/lib:${cairo}/lib:${pango}/lib:${gtk}/lib:${libjpeg}/lib:${libpng}/lib:${sqlite}/lib:${openssl}/lib";
14+ # Various Racket executables do runtime searches for these.
15+ ffiSharedLibs = "${cairo}/lib:${fontconfig}/lib:${glib}/lib:${gtk}/lib:${libjpeg}/lib:"
16+ + "${libpng}/lib:${openssl}/lib:${pango}/lib:${sqlite}/lib";
1717
18− buildInputs = [ file libtool which makeWrapper fontconfig liberation_ttf sqlite ];
18+ buildInputs = [ file fontconfig freefont_ttf libtool makeWrapper sqlite which ];
1919
2020 preConfigure = ''
2121 export LD_LIBRARY_PATH=${ffiSharedLibs}:$LD_LIBRARY_PATH
2222
23− # Chroot builds do not have access to /etc/fonts/fonts.conf, but the Racket bootstrap
24− # needs a working fontconfig, so here a simple standin is used.
23+ # Chroot builds do not have access to /etc/fonts/fonts.conf,
24+ # but the Racket bootstrap needs a working fontconfig,
25+ # so here a simple temporary stand-in is used.
2526 mkdir chroot-fontconfig
2627 cat ${fontconfig}/etc/fonts/fonts.conf > chroot-fontconfig/fonts.conf
2728 sed -e 's@</fontconfig>@@' -i chroot-fontconfig/fonts.conf
28− echo "<dir>${liberation_ttf}</dir>" >> chroot-fontconfig/fonts.conf
29+ echo "<dir>${freefont_ttf}</dir>" >> chroot-fontconfig/fonts.conf
2930 echo "</fontconfig>" >> chroot-fontconfig/fonts.conf
3031
32+ # remove extraneous directories from temporary fonts.conf
33+ sed -e 's@<dir></dir>@@g' \
34+ -e 's@<dir prefix="xdg">fonts</dir>@@g' \
35+ -e 's@<dir>~/.fonts</dir>@@g' \
36+ -e 's@<cachedir prefix="xdg">fontconfig</cachedir>@@g' \
37+ -e 's@<cachedir>~/.fontconfig</cachedir>@@g' \
38+ -i chroot-fontconfig/fonts.conf
39+
3140 export FONTCONFIG_FILE=$(pwd)/chroot-fontconfig/fonts.conf
3241
3342 cd src
3443 sed -e 's@/usr/bin/uname@'"$(which uname)"'@g' -i configure
35− sed -e 's@/usr/bin/file@'"$(which file)"'@g' -i foreign/libffi/configure
44+ sed -e 's@/usr/bin/file@'"$(which file)"'@g' -i foreign/libffi/configure
3645 '';
3746
3847 configureFlags = [ "--enable-shared" "--enable-lt=${libtool}/bin/libtool" ];
@@ -41,25 +50,25 @@ stdenv.mkDerivation rec {
4150
4251 postInstall = ''
4352 for p in $(ls $out/bin/) ; do
44− wrapProgram $out/bin/$p --prefix LD_LIBRARY_PATH ":" "${ffiSharedLibs}" ;
53+ wrapProgram $out/bin/$p --prefix LD_LIBRARY_PATH ":" "${ffiSharedLibs}";
4554 done
4655 '';
4756
4857 meta = {
49− description = "Programming language derived from Scheme (formerly called PLT Scheme)";
58+ description = "A programmable programming language";
5059 longDescription = ''
51− Racket (formerly called PLT Scheme) is a programming language derived
52− from Scheme. The Racket project has four primary components: the
53− implementation of Racket, a JIT compiler; DrRacket, the Racket program
54− development environment; the TeachScheme! outreach, an attempt to turn
55− Computing and Programming into "an indispensable part of the liberal
56− arts curriculum"; and PLaneT, Racket's web-based package
57− distribution system for user-contributed packages.
60+ Racket is a full-spectrum programming language. It goes beyond
61+ Lisp and Scheme with dialects that support objects, types,
62+ laziness, and more. Racket enables programmers to link
63+ components written in different dialects, and it empowers
64+ programmers to create new, project-specific dialects. Racket's
65+ libraries support applications from web servers and databases to
66+ GUIs and charts.
5867 '';
5968
6069 homepage = http://racket-lang.org/;
61− license = stdenv.lib.licenses.lgpl2Plus; # and licenses of contained libraries
62− maintainers = [ stdenv.lib.maintainers.kkallio ];
70+ license = stdenv.lib.licenses.lgpl3;
71+ maintainers = with stdenv.lib.maintainers; [ kkallio henrytill ];
6372 platforms = stdenv.lib.platforms.linux;
6473 };
6574}