at 18.09-beta 1.3 kB view raw
1{stdenv, fetchurl}: 2 3let 4 inherit (stdenv.hostPlatform) system; 5 version = "21b"; 6 downloadUrl = arch: 7 "http://common-lisp.net/project/cmucl/downloads/release/" + 8 "${version}/cmucl-${version}-${arch}.tar.bz2"; 9 fetchDist = {arch, sha256}: fetchurl { 10 url = downloadUrl arch; 11 inherit sha256; 12 }; 13 dist = 14 if system == "i686-linux" then fetchDist { 15 arch = "x86-linux"; 16 sha256 = "13k3b5ygnbsq6n2i3r5i4ljw3r1qlskn2p5f4x9hrx6vfvbb3k7a"; 17 } 18 else throw "Unsupported platform for cmucl."; 19in 20 21stdenv.mkDerivation { 22 name = "cmucl-binary-${version}"; 23 24 buildCommand = '' 25 mkdir -p $out 26 tar -C $out -xjf ${dist} 27 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 28 $out/bin/lisp 29 ''; 30 31 meta = { 32 description = "The CMU implementation of Common Lisp"; 33 longDescription = '' 34 CMUCL is a free implementation of the Common Lisp programming language 35 which runs on most major Unix platforms. It mainly conforms to the 36 ANSI Common Lisp standard. 37 ''; 38 license = stdenv.lib.licenses.free; # public domain 39 homepage = http://www.cons.org/cmucl/; 40 maintainers = [stdenv.lib.maintainers.tohl]; 41 platforms = stdenv.lib.platforms.linux; 42 }; 43}