From 2f53f2ed163e114c4f356faf73d621d543b0940a Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 16 Nov 2014 19:27:06 +0300 Subject: [PATCH] An example build for the SBCL binary creation --- pkgs/development/lisp-modules/lisp-packages.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pkgs/development/lisp-modules/lisp-packages.nix b/pkgs/development/lisp-modules/lisp-packages.nix index de9f35cb87f7..af50ba75bdf4 100644 --- a/pkgs/development/lisp-modules/lisp-packages.nix +++ b/pkgs/development/lisp-modules/lisp-packages.nix @@ -202,7 +202,7 @@ let lispPackages = rec { overrides = x:{ preConfigure = '' export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${pkgs.mysql}/include/mysql" - export NIX_LDFLAGS="$NIX_LDFLAGS -L${pkgs.mysql}/lib/mysql" + export NIX_LDFLAGS="$NIX_LDFLAGS -L${pkgs.mysql}/lib/mysql" ''; }; }; @@ -231,6 +231,17 @@ let lispPackages = rec { sha256 = "4ed66f255e50d2c9ea9f0b3fbaa92bde9b8acf6a5fafb0d7f12b254be9de99e9"; rev = ''831f0180967f09b1dd345fef82144f48334279c3''; }; + overrides = x: { + 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)" + ''; + }; }; cl-fuse = buildLispPackage rec { @@ -248,7 +259,7 @@ let lispPackages = rec { overrides = x : { configurePhase = '' export CL_SOURCE_REGISTRY="$CL_SOURCE_REGISTRY:$PWD" - export makeFlags="$makeFlags LISP=common-lisp.sh" + export makeFlags="$makeFlags LISP=common-lisp.sh" ''; }; };