diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2015-10-01 11:20:24 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-10-01 11:20:24 +0200 |
commit | 673f3de193b5328e7c3906ebf22114956a264e96 (patch) | |
tree | e3b2e6b764d4aba3618d29570f8dcb0ba14b171d /pkgs/development/compilers/ccl | |
parent | 4e66ba1a70368ea9ba6f8af1dc931d54404bec72 (diff) | |
download | nixlib-673f3de193b5328e7c3906ebf22114956a264e96.tar nixlib-673f3de193b5328e7c3906ebf22114956a264e96.tar.gz nixlib-673f3de193b5328e7c3906ebf22114956a264e96.tar.bz2 nixlib-673f3de193b5328e7c3906ebf22114956a264e96.tar.lz nixlib-673f3de193b5328e7c3906ebf22114956a264e96.tar.xz nixlib-673f3de193b5328e7c3906ebf22114956a264e96.tar.zst nixlib-673f3de193b5328e7c3906ebf22114956a264e96.zip |
lisps: some refactoring
Diffstat (limited to 'pkgs/development/compilers/ccl')
-rw-r--r-- | pkgs/development/compilers/ccl/default.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/development/compilers/ccl/default.nix b/pkgs/development/compilers/ccl/default.nix index 30eb528cab71..de6a041871ea 100644 --- a/pkgs/development/compilers/ccl/default.nix +++ b/pkgs/development/compilers/ccl/default.nix @@ -1,11 +1,8 @@ { stdenv, fetchsvn, gcc, glibc, m4, coreutils }: -/* TODO: there are also MacOS, FreeBSD and Windows versions */ -assert stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux" - || stdenv.system == "armv7l-linux" || stdenv.system == "armv6l-linux"; - let options = rec { + /* TODO: there are also MacOS, FreeBSD and Windows versions */ x86_64-linux = { arch = "linuxx86"; sha256 = "04p77n18cw0bc8i66mp2vfrhlliahrx66lm004a3nw3h0mdk0gd8"; @@ -28,6 +25,9 @@ let }; cfg = options.${stdenv.system}; in + +assert builtins.hasAttr stdenv.system options; + stdenv.mkDerivation rec { name = "ccl-${version}"; version = "1.10"; @@ -70,11 +70,11 @@ stdenv.mkDerivation rec { chmod a+x "$out"/bin/"${CCL_RUNTIME}" ''; - meta = { + meta = with stdenv.lib; { description = "Clozure Common Lisp"; homepage = http://ccl.clozure.com/; - maintainers = with stdenv.lib.maintainers; [ raskin muflax ]; - platforms = stdenv.lib.platforms.linux; - license = stdenv.lib.licenses.lgpl21; + maintainers = with maintainers; [ raskin muflax ]; + platforms = attrNames options; + license = licenses.lgpl21; }; } |