From 332eca4ad9f3908fca5520ad8f2c23fe553103c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 21 Sep 2010 12:31:11 +0000 Subject: [PATCH] Add Nix expression for Racket. Patch by Karn Kallio . svn path=/nixpkgs/trunk/; revision=23881 --- .../interpreters/racket/default.nix | 70 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 72 insertions(+) create mode 100644 pkgs/development/interpreters/racket/default.nix diff --git a/pkgs/development/interpreters/racket/default.nix b/pkgs/development/interpreters/racket/default.nix new file mode 100644 index 000000000000..7f11ee7c3dfb --- /dev/null +++ b/pkgs/development/interpreters/racket/default.nix @@ -0,0 +1,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" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d075f8132473..b06d8900f56e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2139,6 +2139,8 @@ let qi = callPackage ../development/compilers/qi { }; + racket = callPackage ../development/interpreters/racket { }; + ruby18 = callPackage ../development/interpreters/ruby { }; #ruby19 = import ../development/interpreters/ruby/ruby-19.nix { inherit ruby18 fetchurl; }; ruby = ruby18;