2017-04-01 08:08:02 +02:00
|
|
|
{pkgs, buildLispPackage, clwrapper, quicklisp-to-nix-packages}:
|
2017-03-30 22:54:56 +02:00
|
|
|
let
|
|
|
|
addDeps = newdeps: x: {deps = x.deps ++ newdeps;};
|
|
|
|
addNativeLibs = libs: x: { propagatedBuildInputs = libs; };
|
2017-04-10 09:57:07 +02:00
|
|
|
skipBuildPhase = x: {
|
2017-03-30 22:54:56 +02:00
|
|
|
overrides = y: ((x.overrides y) // { buildPhase = "true"; });
|
2017-03-26 04:15:42 +02:00
|
|
|
};
|
2017-03-30 22:54:56 +02:00
|
|
|
qlnp = quicklisp-to-nix-packages;
|
|
|
|
multiOverride = l: x: if l == [] then {} else
|
|
|
|
((builtins.head l) x) // (multiOverride (builtins.tail l) x);
|
|
|
|
in
|
|
|
|
{
|
2017-04-06 18:43:42 +02:00
|
|
|
stumpwm = x:{
|
|
|
|
overrides = y: (x.overrides y) // {
|
|
|
|
preConfigure = ''
|
|
|
|
export configureFlags="$configureFlags --with-$NIX_LISP=common-lisp.sh";
|
|
|
|
'';
|
|
|
|
};
|
2017-06-21 22:15:07 +02:00
|
|
|
propagatedBuildInputs = (x.propagatedBuildInputs or []) ++ (with qlnp; [
|
|
|
|
alexandria cl-ppcre clx
|
|
|
|
]);
|
2017-04-06 18:43:42 +02:00
|
|
|
};
|
2017-03-30 22:54:56 +02:00
|
|
|
iterate = skipBuildPhase;
|
2017-03-26 04:15:42 +02:00
|
|
|
cl-fuse = x: {
|
|
|
|
propagatedBuildInputs = [pkgs.fuse];
|
2017-03-30 22:54:56 +02:00
|
|
|
overrides = y : (x.overrides y) // {
|
2017-03-26 04:15:42 +02:00
|
|
|
configurePhase = ''
|
2017-04-06 18:43:42 +02:00
|
|
|
export SAVED_CL_SOURCE_REGISTRY="$CL_SOURCE_REGISTRY"
|
2017-03-26 04:15:42 +02:00
|
|
|
export CL_SOURCE_REGISTRY="$CL_SOURCE_REGISTRY:$PWD"
|
|
|
|
export makeFlags="$makeFlags LISP=common-lisp.sh"
|
|
|
|
'';
|
2017-04-06 18:43:42 +02:00
|
|
|
preInstall = ''
|
|
|
|
export CL_SOURCE_REGISTRY="$SAVED_CL_SOURCE_REGISTRY"
|
|
|
|
'';
|
2017-03-26 04:15:42 +02:00
|
|
|
};
|
|
|
|
};
|
2017-03-30 22:54:56 +02:00
|
|
|
hunchentoot = addNativeLibs [pkgs.openssl];
|
2017-06-28 22:18:08 +02:00
|
|
|
iolib = x: rec {
|
2017-06-21 22:15:07 +02:00
|
|
|
propagatedBuildInputs = (x.propagatedBuildInputs or [])
|
|
|
|
++ (with pkgs; [libfixposix gcc])
|
|
|
|
++ (with qlnp; [
|
|
|
|
alexandria split-sequence cffi bordeaux-threads idna swap-bytes
|
|
|
|
])
|
|
|
|
;
|
2017-06-22 09:30:29 +02:00
|
|
|
testSystems = ["iolib" "iolib/syscalls" "iolib/multiplex" "iolib/streams"
|
|
|
|
"iolib/zstreams" "iolib/sockets" "iolib/trivial-sockets"
|
|
|
|
"iolib/pathnames" "iolib/os"];
|
2017-06-28 22:18:08 +02:00
|
|
|
|
|
|
|
version = "0.8.3";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "sionescu";
|
|
|
|
repo = "iolib";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0pa86bf3jrysnmhasbc0lm6cid9xzril4jsg02g3gziav1xw5x2m";
|
|
|
|
};
|
2017-04-09 23:48:02 +02:00
|
|
|
};
|
2017-03-30 22:54:56 +02:00
|
|
|
cl-unicode = addDeps (with qlnp; [cl-ppcre flexi-streams]);
|
|
|
|
clack = addDeps (with qlnp;[lack bordeaux-threads prove]);
|
|
|
|
clack-v1-compat = addDeps (with qlnp;[
|
|
|
|
lack bordeaux-threads prove usocket dexador http-body trivial-backtrace
|
|
|
|
marshal local-time cl-base64 cl-ppcre quri trivial-mimes trivial-types
|
|
|
|
flexi-streams circular-streams ironclad cl-syntax-annot alexandria
|
|
|
|
split-sequence
|
|
|
|
]);
|
2017-04-01 08:08:02 +02:00
|
|
|
lack = addDeps (with qlnp; [ironclad]);
|
2017-04-06 18:43:42 +02:00
|
|
|
cxml = multiOverride [ skipBuildPhase (addDeps (with qlnp; [
|
|
|
|
closure-common puri trivial-gray-streams
|
|
|
|
]))];
|
2017-03-30 22:54:56 +02:00
|
|
|
wookie = multiOverride [(addDeps (with qlnp; [
|
|
|
|
alexandria blackbird cl-async chunga fast-http quri babel cl-ppcre
|
2017-04-01 08:08:02 +02:00
|
|
|
cl-fad fast-io vom do-urlencode cl-async-ssl
|
2017-04-10 09:57:07 +02:00
|
|
|
]))
|
2017-03-30 22:54:56 +02:00
|
|
|
(addNativeLibs (with pkgs; [libuv openssl]))];
|
|
|
|
woo = addDeps (with qlnp; [
|
|
|
|
cffi lev clack swap-bytes static-vectors fast-http proc-parse quri fast-io
|
|
|
|
trivial-utf-8 vom
|
|
|
|
]);
|
|
|
|
lev = addNativeLibs [pkgs.libev];
|
|
|
|
dexador = addDeps (with qlnp; [
|
|
|
|
usocket fast-http quri fast-io chunga cl-ppcre cl-cookie trivial-mimes
|
|
|
|
chipz cl-base64 cl-reexport qlnp."cl+ssl" alexandria bordeaux-threads
|
|
|
|
]);
|
|
|
|
fast-http = addDeps (with qlnp; [
|
|
|
|
alexandria cl-utilities proc-parse xsubseq smart-buffer
|
|
|
|
]);
|
|
|
|
cl-emb = addDeps (with qlnp; [cl-ppcre]);
|
|
|
|
"cl+ssl" = addNativeLibs [pkgs.openssl];
|
|
|
|
cl-colors = skipBuildPhase;
|
|
|
|
cl-libuv = addNativeLibs [pkgs.libuv];
|
2017-04-01 08:08:02 +02:00
|
|
|
cl-async = addDeps (with qlnp; [cl-async-base]);
|
|
|
|
cl-async-ssl = multiOverride [(addDeps (with qlnp; [cl-async-base]))
|
|
|
|
(addNativeLibs [pkgs.openssl])];
|
|
|
|
cl-async-repl = addDeps (with qlnp; [cl-async]);
|
2017-03-30 22:54:56 +02:00
|
|
|
cl-async-base = addDeps (with qlnp; [
|
|
|
|
cffi fast-io vom cl-libuv cl-ppcre trivial-features static-vectors
|
|
|
|
trivial-gray-streams babel
|
|
|
|
]);
|
2017-04-01 08:08:02 +02:00
|
|
|
cl-async-util = addDeps (with qlnp; [ cl-async-base ]);
|
2017-03-30 22:54:56 +02:00
|
|
|
css-lite = addDeps (with qlnp; [parenscript]);
|
2017-03-31 12:06:05 +02:00
|
|
|
clsql = x: {
|
|
|
|
propagatedBuildInputs = with pkgs; [mysql postgresql sqlite zlib];
|
|
|
|
overrides = y: (x.overrides y) // {
|
|
|
|
preConfigure = ((x.overrides y).preConfigure or "") + ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${pkgs.lib.getDev pkgs.mysql.client}/include/mysql"
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -L${pkgs.lib.getLib pkgs.mysql.client}/lib/mysql"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
clx-truetype = skipBuildPhase;
|
|
|
|
query-fs = x: {
|
|
|
|
overrides = y: (x.overrides y) // {
|
|
|
|
linkedSystems = [];
|
2017-04-01 08:08:02 +02:00
|
|
|
postInstall = ((x.overrides y).postInstall or "") + ''
|
2017-03-31 12:06:05 +02:00
|
|
|
export CL_SOURCE_REGISTRY="$CL_SOURCE_REGISTRY:$out/lib/common-lisp/query-fs"
|
|
|
|
export HOME=$PWD
|
|
|
|
build-with-lisp.sh sbcl \
|
|
|
|
":query-fs $(echo "$linkedSystems" | sed -re 's/(^| )([^ :])/ :\2/g')" \
|
|
|
|
"$out/bin/query-fs" \
|
|
|
|
"(query-fs:run-fs-with-cmdline-args)"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2017-04-01 08:08:02 +02:00
|
|
|
cffi = multiOverride [(addNativeLibs [pkgs.libffi])
|
2017-04-06 18:43:42 +02:00
|
|
|
(addDeps (with qlnp; [uffi uiop trivial-features]))];
|
2017-04-01 08:08:02 +02:00
|
|
|
cl-vectors = addDeps (with qlnp; [zpb-ttf]);
|
2017-06-21 22:15:07 +02:00
|
|
|
cl-paths-ttf = addDeps (with qlnp; [zpb-ttf]);
|
2017-04-01 08:08:02 +02:00
|
|
|
"3bmd" = addDeps (with qlnp; [esrap split-sequence]);
|
|
|
|
cl-dbi = addDeps (with qlnp; [
|
|
|
|
cl-syntax cl-syntax-annot split-sequence closer-mop bordeaux-threads
|
|
|
|
]);
|
|
|
|
dbd-sqlite3 = addDeps (with qlnp; [cl-dbi]);
|
|
|
|
dbd-postgres = addDeps (with qlnp; [cl-dbi]);
|
|
|
|
dbd-mysql = addDeps (with qlnp; [cl-dbi]);
|
|
|
|
cl-mysql = addNativeLibs [pkgs.mysql];
|
|
|
|
cl-ppcre-template = x: {
|
|
|
|
overrides = y: (x.overrides y) // {
|
|
|
|
postPatch = ''
|
|
|
|
ln -s lib-dependent/*.asd .
|
|
|
|
'';
|
|
|
|
};
|
2017-06-21 22:15:07 +02:00
|
|
|
propagatedBuildInputs = (x.propagatedBuildInputs or []) ++ (with qlnp; [
|
|
|
|
cl-ppcre
|
|
|
|
]);
|
2017-04-01 08:08:02 +02:00
|
|
|
};
|
|
|
|
cl-unification = addDeps (with qlnp; [cl-ppcre]);
|
|
|
|
cl-syntax-annot = addDeps (with qlnp; [cl-syntax]);
|
|
|
|
cl-syntax-anonfun = addDeps (with qlnp; [cl-syntax]);
|
|
|
|
cl-syntax-markup = addDeps (with qlnp; [cl-syntax]);
|
|
|
|
cl-test-more = addDeps (with qlnp; [prove]);
|
2017-06-21 22:15:07 +02:00
|
|
|
babel-streams = addDeps (with qlnp; [babel trivial-gray-streams]);
|
|
|
|
babel = addDeps (with qlnp; [trivial-features alexandria]);
|
2017-04-01 08:08:02 +02:00
|
|
|
plump = addDeps (with qlnp; [array-utils trivial-indent]);
|
|
|
|
sqlite = addNativeLibs [pkgs.sqlite];
|
2017-04-06 18:43:42 +02:00
|
|
|
uiop = x: {
|
2017-04-16 19:25:36 +02:00
|
|
|
testSystems = (x.testSystems or ["uiop"]) ++ [
|
|
|
|
"uiop/version"
|
|
|
|
];
|
2017-04-06 18:43:42 +02:00
|
|
|
overrides = y: (x.overrides y) // {
|
|
|
|
postInstall = ((x.overrides y).postInstall or "") + ''
|
|
|
|
cp -r "${pkgs.asdf}/lib/common-lisp/asdf/uiop/contrib" "$out/lib/common-lisp/uiop"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2017-06-21 22:15:07 +02:00
|
|
|
cl-containers = x: {
|
|
|
|
overrides = y: (x.overrides y) // {
|
|
|
|
postConfigure = "rm GNUmakefile";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
esrap = addDeps (with qlnp; [alexandria]);
|
|
|
|
fast-io = addDeps (with qlnp; [
|
|
|
|
alexandria trivial-gray-streams static-vectors
|
|
|
|
]);
|
|
|
|
hu_dot_dwim_dot_def = addDeps (with qlnp; [
|
|
|
|
hu_dot_dwim_dot_asdf alexandria anaphora iterate metabang-bind
|
|
|
|
]);
|
|
|
|
ironclad = addDeps (with qlnp; [nibbles flexi-streams]);
|
|
|
|
ixf = addDeps (with qlnp; [
|
|
|
|
split-sequence md5 alexandria babel local-time cl-ppcre ieee-floats
|
|
|
|
]);
|
|
|
|
jonathan = addDeps (with qlnp; [
|
|
|
|
cl-syntax cl-syntax-annot fast-io proc-parse cl-ppcre
|
|
|
|
]);
|
|
|
|
local-time = addDeps (with qlnp; [cl-fad]);
|
|
|
|
lquery = addDeps (with qlnp; [array-utils form-fiddle plump clss]);
|
|
|
|
clss = addDeps (with qlnp; [array-utils plump]);
|
|
|
|
form-fiddle = addDeps (with qlnp; [documentation-utils]);
|
|
|
|
documentation-utils = addDeps (with qlnp; [trivial-indent]);
|
|
|
|
mssql = x: {
|
|
|
|
testSystems = [];
|
|
|
|
};
|
|
|
|
cl-postgres = addDeps (with qlnp; [cl-ppcre md5]);
|
|
|
|
postmodern = addDeps (with qlnp; [md5]);
|
2017-03-26 04:15:42 +02:00
|
|
|
}
|