2010-10-05 18:00:10 +02:00
|
|
|
{ stdenv, fetchurl, cairo, file, libjpeg
|
|
|
|
, libpng, libtool, libXaw, libXext, libXft, libXrender
|
|
|
|
, libXt, libXmu, mesa, pkgconfig, which } :
|
2010-09-21 14:31:11 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-10-26 02:22:44 +02:00
|
|
|
pname = "racket";
|
2010-11-16 18:31:21 +01:00
|
|
|
version = "5.0.2";
|
2010-10-26 02:22:44 +02:00
|
|
|
name = "${pname}-${version}";
|
2010-09-21 14:31:11 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-10-26 02:22:44 +02:00
|
|
|
url = "http://download.racket-lang.org/installers/${version}/${pname}/${name}-src-unix.tgz";
|
2010-11-16 18:31:21 +01:00
|
|
|
sha256 = "1xx0gc935mvh9b1nch7p4xscx9hjd0401rl1sdpf291nj9vmpb3k";
|
2010-09-21 14:31:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cairo
|
|
|
|
file
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
libtool
|
|
|
|
libXaw
|
|
|
|
libXext
|
|
|
|
libXft
|
|
|
|
libXrender
|
|
|
|
libXt
|
|
|
|
libXmu
|
|
|
|
mesa
|
|
|
|
pkgconfig
|
|
|
|
which
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
sed -e 's@/usr/bin/uname@'"$(which uname)"'@g' -i configure
|
|
|
|
sed -e 's@/usr/bin/file@'"$(which file)"'@g' -i foreign/libffi/configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-shared" "--enable-lt=${libtool}/bin/libtool" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Racket (formerly called PLT Scheme) is a programming language derived from Scheme.";
|
|
|
|
longDescription = ''
|
|
|
|
Racket (formerly called PLT Scheme) is a programming language derived
|
|
|
|
from Scheme. The Racket project has four primary components: the
|
|
|
|
implementation of Racket, a JIT compiler; DrRacket, the Racket program
|
|
|
|
development environment; the TeachScheme! outreach, an attempt to turn
|
|
|
|
Computing and Programming into "an indispensable part of the liberal
|
|
|
|
arts curriculum"; and PLaneT, Racket's web-based package
|
|
|
|
distribution system for user-contributed packages.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://racket-lang.org/;
|
2010-10-05 18:00:10 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.kkallio ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-09-21 14:31:11 +02:00
|
|
|
};
|
|
|
|
}
|