summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/clisp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/interpreters/clisp/default.nix')
-rw-r--r--pkgs/development/interpreters/clisp/default.nix46
1 files changed, 23 insertions, 23 deletions
diff --git a/pkgs/development/interpreters/clisp/default.nix b/pkgs/development/interpreters/clisp/default.nix
index 1b7ff2c8cba3..566d16179b57 100644
--- a/pkgs/development/interpreters/clisp/default.nix
+++ b/pkgs/development/interpreters/clisp/default.nix
@@ -3,7 +3,7 @@
# - base (default): contains readline and i18n, regexp and syscalls modules
# by default
# - full: contains base plus modules in withModules
-{ stdenv, fetchurl, libsigsegv, gettext, ncurses, readline, libX11
+{ lib, stdenv, fetchurl, libsigsegv, gettext, ncurses, readline, libX11
, libXau, libXt, pcre, zlib, libXpm, xorgproto, libXext
, libffi
, libffcall
@@ -16,8 +16,8 @@
"pcre"
"rawsock"
]
- ++ stdenv.lib.optionals stdenv.isLinux [ "bindings/glibc" "zlib" "wildcard" ]
- ++ stdenv.lib.optional x11Support "clx/new-clx"
+ ++ lib.optionals stdenv.isLinux [ "bindings/glibc" "zlib" "wildcard" ]
+ ++ lib.optional x11Support "clx/new-clx"
}:
assert x11Support -> (libX11 != null && libXau != null && libXt != null
@@ -37,14 +37,14 @@ stdenv.mkDerivation rec {
ffcallAvailable = stdenv.isLinux && (libffcall != null);
buildInputs = [libsigsegv]
- ++ stdenv.lib.optional (gettext != null) gettext
- ++ stdenv.lib.optional (ncurses != null) ncurses
- ++ stdenv.lib.optional (pcre != null) pcre
- ++ stdenv.lib.optional (zlib != null) zlib
- ++ stdenv.lib.optional (readline != null) readline
- ++ stdenv.lib.optional (ffcallAvailable && (libffi != null)) libffi
- ++ stdenv.lib.optional ffcallAvailable libffcall
- ++ stdenv.lib.optionals x11Support [
+ ++ lib.optional (gettext != null) gettext
+ ++ lib.optional (ncurses != null) ncurses
+ ++ lib.optional (pcre != null) pcre
+ ++ lib.optional (zlib != null) zlib
+ ++ lib.optional (readline != null) readline
+ ++ lib.optional (ffcallAvailable && (libffi != null)) libffi
+ ++ lib.optional ffcallAvailable libffcall
+ ++ lib.optionals x11Support [
libX11 libXau libXt libXpm xorgproto libXext
];
@@ -68,14 +68,14 @@ stdenv.mkDerivation rec {
'';
configureFlags = [ "builddir" ]
- ++ stdenv.lib.optional (!dllSupport) "--without-dynamic-modules"
- ++ stdenv.lib.optional (readline != null) "--with-readline"
+ ++ lib.optional (!dllSupport) "--without-dynamic-modules"
+ ++ lib.optional (readline != null) "--with-readline"
# --with-dynamic-ffi can only exist with --with-ffcall - foreign.d does not compile otherwise
- ++ stdenv.lib.optional (ffcallAvailable && (libffi != null)) "--with-dynamic-ffi"
- ++ stdenv.lib.optional ffcallAvailable "--with-ffcall"
- ++ stdenv.lib.optional (!ffcallAvailable) "--without-ffcall"
+ ++ lib.optional (ffcallAvailable && (libffi != null)) "--with-dynamic-ffi"
+ ++ lib.optional ffcallAvailable "--with-ffcall"
+ ++ lib.optional (!ffcallAvailable) "--without-ffcall"
++ builtins.map (x: "--with-module=" + x) withModules
- ++ stdenv.lib.optional threadSupport "--with-threads=POSIX_THREADS";
+ ++ lib.optional threadSupport "--with-threads=POSIX_THREADS";
preBuild = ''
sed -e '/avcall.h/a\#include "config.h"' -i src/foreign.d
@@ -83,11 +83,11 @@ stdenv.mkDerivation rec {
'';
postInstall =
- stdenv.lib.optionalString (withModules != [])
+ lib.optionalString (withModules != [])
(''./clisp-link add "$out"/lib/clisp*/base "$(dirname "$out"/lib/clisp*/base)"/full''
- + stdenv.lib.concatMapStrings (x: " " + x) withModules);
+ + lib.concatMapStrings (x: " " + x) withModules);
- NIX_CFLAGS_COMPILE = "-O0 ${stdenv.lib.optionalString (!stdenv.is64bit) "-falign-functions=4"}";
+ NIX_CFLAGS_COMPILE = "-O0 ${lib.optionalString (!stdenv.is64bit) "-falign-functions=4"}";
# TODO : make mod-check fails
doCheck = false;
@@ -95,10 +95,10 @@ stdenv.mkDerivation rec {
meta = {
description = "ANSI Common Lisp Implementation";
homepage = "http://clisp.cons.org";
- maintainers = with stdenv.lib.maintainers; [raskin tohl];
- platforms = stdenv.lib.platforms.unix;
+ maintainers = with lib.maintainers; [raskin tohl];
+ platforms = lib.platforms.unix;
# problems on Darwin: https://github.com/NixOS/nixpkgs/issues/20062
broken = stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isAarch64;
- license = stdenv.lib.licenses.gpl2;
+ license = lib.licenses.gpl2;
};
}