diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-01-07 02:18:36 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-01-07 02:18:47 +0000 |
commit | 36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2 (patch) | |
tree | b3faaf573407b32aa645237a4d16b82778a39a92 /nixpkgs/pkgs/development/compilers/cmucl | |
parent | 4e31070265257dc67d120c27e0f75c2344fdfa9a (diff) | |
parent | abf060725d7614bd3b9f96764262dfbc2f9c2199 (diff) | |
download | nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.gz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.bz2 nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.lz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.xz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.zst nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.zip |
Add 'nixpkgs/' from commit 'abf060725d7614bd3b9f96764262dfbc2f9c2199'
git-subtree-dir: nixpkgs git-subtree-mainline: 4e31070265257dc67d120c27e0f75c2344fdfa9a git-subtree-split: abf060725d7614bd3b9f96764262dfbc2f9c2199
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/cmucl')
-rw-r--r-- | nixpkgs/pkgs/development/compilers/cmucl/binary.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/compilers/cmucl/binary.nix b/nixpkgs/pkgs/development/compilers/cmucl/binary.nix new file mode 100644 index 000000000000..9e3184c42eb2 --- /dev/null +++ b/nixpkgs/pkgs/development/compilers/cmucl/binary.nix @@ -0,0 +1,43 @@ +{stdenv, fetchurl}: + +let + inherit (stdenv.hostPlatform) system; + version = "21b"; + 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 = "13k3b5ygnbsq6n2i3r5i4ljw3r1qlskn2p5f4x9hrx6vfvbb3k7a"; + } + else throw "Unsupported platform for cmucl."; +in + +stdenv.mkDerivation { + name = "cmucl-binary-${version}"; + + buildCommand = '' + mkdir -p $out + tar -C $out -xjf ${dist} + patchelf --set-interpreter "$(cat $NIX_CC/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 = stdenv.lib.licenses.free; # public domain + homepage = http://www.cons.org/cmucl/; + maintainers = [stdenv.lib.maintainers.tohl]; + platforms = stdenv.lib.platforms.linux; + }; +} |