summary refs log tree commit diff
path: root/pkgs/development/interpreters/racket/default.nix
blob: 7f11ee7c3dfbd4b0e7a5a9ebb0d7b13d5c03e1b4 (plain) (blame)
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
{ stdenv
, fetchurl
, cairo
, coreutils
, file
, libjpeg
, libpng
, libtool
, libXaw
, libXext
, libXft
, libXrender
, libXt
, libXmu
, mesa
, pkgconfig
, which } :

stdenv.mkDerivation rec {
  name = "racket";
  version = "5.0.1";
  pname = "${name}-${version}";

  src = fetchurl {
    url = "http://download.racket-lang.org/installers/${version}/${name}/${pname}-src-unix.tgz";
    sha256 = "18bzzzbxvr888lnpwggismq5grysrwlyg2dp026hhv5n2mk5sfvn";
  };

  buildInputs = [ cairo
                  coreutils
                  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/;
    license = "LGPL";
    platforms = [ "i686-linux" "x86_64-linux" ];
  };
}