From c17999a8ac8ff4c4ebc2edf822799f756cde4695 Mon Sep 17 00:00:00 2001 From: maggesi Date: Mon, 8 Nov 2010 08:58:50 +0000 Subject: [PATCH] Add CMUCL Common Lisp compiler git-svn-id: https://svn.nixos.org/repos/nix/nixpkgs/trunk@24618 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb --- pkgs/development/compilers/cmucl/binary.nix | 45 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/compilers/cmucl/binary.nix diff --git a/pkgs/development/compilers/cmucl/binary.nix b/pkgs/development/compilers/cmucl/binary.nix new file mode 100644 index 000000000..1e5c7d4fe --- /dev/null +++ b/pkgs/development/compilers/cmucl/binary.nix @@ -0,0 +1,45 @@ +{stdenv, fetchurl}: + +let + inherit (stdenv) system; + version = "20b"; + downloadUrl = arch: + "http://common-lisp.net/project/cmucl/downloads/release/" + + "${version}/cmucl-${version}-${arch}.tar.bz2"; + fetchDist = {arch, sha256}: fetchurl { + url = downloadUrl arch; + inherit sha256; + }; + dist = + if system == "i686-linux" then fetchDist { + arch = "x86-linux"; + sha256 = "1s00r1kszk5zhmv7m8z5q2wcqjn2gn7fbqwji3hgnsdvbb1f3jdn"; + } + else if system == "i686-darwin" then fetchDist { + arch = "x86-darwin"; + sha256 = "0vd3zbp5zcp0hjd3y03k595hmri8hw884brjpwjiby3jpm3l40np"; + } + else throw "Unsupported platform for cmucl."; +in + +stdenv.mkDerivation { + name = "cmucl-binary-${version}"; + + buildCommand = '' + ensureDir $out + tar -C $out -xjf ${dist} + patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ + $out/bin/lisp + ''; + + meta = { + description = "The CMU implementation of Common Lisp"; + longDescription = '' + CMUCL is a free implementation of the Common Lisp programming language + which runs on most major Unix platforms. It mainly conforms to the + ANSI Common Lisp standard. + ''; + license = "free"; # public domain + homepage = http://www.cons.org/cmucl/; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5fd4e762c..c3e6262ca 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1453,6 +1453,8 @@ let buildClang = true; }; + cmucl_binary = callPackage ../development/compilers/cmucl/binary.nix { }; + dylan = callPackage ../development/compilers/gwydion-dylan { dylan = import ../development/compilers/gwydion-dylan/binary.nix { -- 2.11.4.GIT