Skip to content

Commit

Permalink
lispPackages: migrate to quicklispPackages where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
7c6f434c committed Mar 31, 2017
1 parent 37847f2 commit 02f5831
Show file tree
Hide file tree
Showing 21 changed files with 555 additions and 572 deletions.
549 changes: 2 additions & 547 deletions pkgs/development/lisp-modules/lisp-packages.nix

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-aa.nix
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''cl-aa'';
version = ''cl-vectors-20150407-git'';

description = ''cl-aa: polygon rasterizer'';

deps = [ ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/cl-vectors/2015-04-07/cl-vectors-20150407-git.tgz'';
sha256 = ''1qd7ywc2ayiyd5nw7shnjgh0nc14h328h0cw921g5b2n8j6y959w'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :cl-aa)"' "$out/bin/cl-aa-lisp-launcher.sh" ""
'';
};
}
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''cl-fuse-meta-fs'';
version = ''20150608-git'';

description = ''CFFI bindings to FUSE (Filesystem in user space)'';

deps = [ args."bordeaux-threads" args."cl-fuse" args."iterate" args."pcall" ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/cl-fuse-meta-fs/2015-06-08/cl-fuse-meta-fs-20150608-git.tgz'';
sha256 = ''1i3yw237ygwlkhbcbm9q54ad9g4fi63fw4mg508hr7bz9gzg36q2'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :cl-fuse-meta-fs)"' "$out/bin/cl-fuse-meta-fs-lisp-launcher.sh" ""
'';
};
}
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''cl-paths-ttf'';
version = ''cl-vectors-20150407-git'';

description = ''cl-paths-ttf: vectorial paths manipulation'';

deps = [ args."cl-paths" args."zpb-ttf" ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/cl-vectors/2015-04-07/cl-vectors-20150407-git.tgz'';
sha256 = ''1qd7ywc2ayiyd5nw7shnjgh0nc14h328h0cw921g5b2n8j6y959w'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :cl-paths-ttf)"' "$out/bin/cl-paths-ttf-lisp-launcher.sh" ""
'';
};
}
21 changes: 21 additions & 0 deletions pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-paths.nix
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''cl-paths'';
version = ''cl-vectors-20150407-git'';

description = ''cl-paths: vectorial paths manipulation'';

deps = [ ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/cl-vectors/2015-04-07/cl-vectors-20150407-git.tgz'';
sha256 = ''1qd7ywc2ayiyd5nw7shnjgh0nc14h328h0cw921g5b2n8j6y959w'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :cl-paths)"' "$out/bin/cl-paths-lisp-launcher.sh" ""
'';
};
}
21 changes: 21 additions & 0 deletions pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-smtp.nix
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''cl-smtp'';
version = ''20160825-git'';

description = ''Common Lisp smtp client.'';

deps = [ args."cl+ssl" args."cl-base64" args."flexi-streams" args."trivial-gray-streams" args."usocket" ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/cl-smtp/2016-08-25/cl-smtp-20160825-git.tgz'';
sha256 = ''0svkvy6x458a7rgvp3wki0lmhdxpaa1j0brwsw2mlpl2jqkx5dxh'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :cl-smtp)"' "$out/bin/cl-smtp-lisp-launcher.sh" ""
'';
};
}
21 changes: 21 additions & 0 deletions pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-store.nix
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''cl-store'';
version = ''20160531-git'';

description = ''Serialization package'';

deps = [ ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/cl-store/2016-05-31/cl-store-20160531-git.tgz'';
sha256 = ''0j1pfgvzy6l7hb68xsz2dghsa94lip7caq6f6608jsqadmdswljz'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :cl-store)"' "$out/bin/cl-store-lisp-launcher.sh" ""
'';
};
}
@@ -0,0 +1,23 @@
args @ { fetchurl, ... }:
rec {
baseName = ''cl-unification'';
version = ''20170124-git'';

description = ''The CL-UNIFICATION system.
The system contains the definitions for the 'unification' machinery.'';

deps = [ ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/cl-unification/2017-01-24/cl-unification-20170124-git.tgz'';
sha256 = ''0gwk40y5byg6q0hhd41rqf8g8i1my0h4lshc63xfnh3mfgcc8bx9'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :cl-unification)"' "$out/bin/cl-unification-lisp-launcher.sh" ""
'';
};
}
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''cl-vectors'';
version = ''20150407-git'';

description = ''cl-paths: vectorial paths manipulation'';

deps = [ args."cl-aa" args."cl-paths" ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/cl-vectors/2015-04-07/cl-vectors-20150407-git.tgz'';
sha256 = ''1qd7ywc2ayiyd5nw7shnjgh0nc14h328h0cw921g5b2n8j6y959w'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :cl-vectors)"' "$out/bin/cl-vectors-lisp-launcher.sh" ""
'';
};
}
21 changes: 21 additions & 0 deletions pkgs/development/lisp-modules/quicklisp-to-nix-output/clsql.nix
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''clsql'';
version = ''20160208-git'';

description = ''Common Lisp SQL Interface library'';

deps = [ args."uffi" ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/clsql/2016-02-08/clsql-20160208-git.tgz'';
sha256 = ''0hc97rlfpanp6c1ziis47mrq2fgxbk0h51bhczn8k9xin2qbhhgn'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :clsql)"' "$out/bin/clsql-lisp-launcher.sh" ""
'';
};
}
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''clx-truetype'';
version = ''20160825-git'';

description = ''clx-truetype is pure common lisp solution for antialiased TrueType font rendering using CLX and XRender extension.'';

deps = [ args."cl-aa" args."cl-fad" args."cl-paths-ttf" args."cl-store" args."cl-vectors" args."clx" args."trivial-features" args."zpb-ttf" ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/clx-truetype/2016-08-25/clx-truetype-20160825-git.tgz'';
sha256 = ''0ndy067rg9w6636gxwlpnw7f3ck9nrnjb03444pprik9r3c9in67'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :clx-truetype)"' "$out/bin/clx-truetype-lisp-launcher.sh" ""
'';
};
}
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''command-line-arguments'';
version = ''20151218-git'';

description = ''small library to deal with command-line arguments'';

deps = [ ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/command-line-arguments/2015-12-18/command-line-arguments-20151218-git.tgz'';
sha256 = ''07yv3vj9kjd84q09d6kvgryqxb71bsa7jl22fd1an6inmk0a3yyh'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :command-line-arguments)"' "$out/bin/command-line-arguments-lisp-launcher.sh" ""
'';
};
}
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''pcall-queue'';
version = ''pcall-0.3'';

description = '''';

deps = [ args."bordeaux-threads" ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/pcall/2010-10-06/pcall-0.3.tgz'';
sha256 = ''02idx1wnv9770fl2nh179sb8njw801g70b5mf8jqhqm2gwsb731y'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :pcall-queue)"' "$out/bin/pcall-queue-lisp-launcher.sh" ""
'';
};
}
21 changes: 21 additions & 0 deletions pkgs/development/lisp-modules/quicklisp-to-nix-output/pcall.nix
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''pcall'';
version = ''0.3'';

description = '''';

deps = [ args."bordeaux-threads" args."pcall-queue" ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/pcall/2010-10-06/pcall-0.3.tgz'';
sha256 = ''02idx1wnv9770fl2nh179sb8njw801g70b5mf8jqhqm2gwsb731y'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :pcall)"' "$out/bin/pcall-lisp-launcher.sh" ""
'';
};
}
21 changes: 21 additions & 0 deletions pkgs/development/lisp-modules/quicklisp-to-nix-output/query-fs.nix
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''query-fs'';
version = ''20160531-git'';

description = ''High-level virtual FS using CL-Fuse-Meta-FS to represent results of queries'';

deps = [ args."bordeaux-threads" args."cl-fuse" args."cl-fuse-meta-fs" args."cl-ppcre" args."command-line-arguments" args."iterate" args."trivial-backtrace" ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/query-fs/2016-05-31/query-fs-20160531-git.tgz'';
sha256 = ''0wknr3rffihg1my8ihmpwssxpxj4bfmqcly0s37q51fllxkr1v5a'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :query-fs)"' "$out/bin/query-fs-lisp-launcher.sh" ""
'';
};
}
21 changes: 21 additions & 0 deletions pkgs/development/lisp-modules/quicklisp-to-nix-output/uffi.nix
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''uffi'';
version = ''20150923-git'';

description = ''Universal Foreign Function Library for Common Lisp'';

deps = [ ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/uffi/2015-09-23/uffi-20150923-git.tgz'';
sha256 = ''1b3mb1ac5hqpn941pmgwkiy241rnin308haxbs2f4rwp2la7wzyy'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :uffi)"' "$out/bin/uffi-lisp-launcher.sh" ""
'';
};
}
21 changes: 21 additions & 0 deletions pkgs/development/lisp-modules/quicklisp-to-nix-output/zpb-ttf.nix
@@ -0,0 +1,21 @@
args @ { fetchurl, ... }:
rec {
baseName = ''zpb-ttf'';
version = ''1.0.3'';

description = ''Access TrueType font metrics and outlines from Common Lisp'';

deps = [ ];

src = fetchurl {
url = ''http://beta.quicklisp.org/archive/zpb-ttf/2013-07-20/zpb-ttf-1.0.3.tgz'';
sha256 = ''1irv0d0pcbwi2wx6hhjjyxzw12lnw8pvyg6ljsljh8xmhppbg5j6'';
};

overrides = x: {
postInstall = ''
echo "$CL_SOURCE_REGISTRY"
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(asdf:load-system :zpb-ttf)"' "$out/bin/zpb-ttf-lisp-launcher.sh" ""
'';
};
}
23 changes: 23 additions & 0 deletions pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix
Expand Up @@ -62,4 +62,27 @@ in
trivial-gray-streams babel
]);
css-lite = addDeps (with qlnp; [parenscript]);
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 = [];
postInstall = ''
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)"
'';
};
};
}

0 comments on commit 02f5831

Please sign in to comment.