about summary refs log tree commit diff
path: root/nix/buildLisp
diff options
context:
space:
mode:
Diffstat (limited to 'nix/buildLisp')
-rw-r--r--nix/buildLisp/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/nix/buildLisp/default.nix b/nix/buildLisp/default.nix
index 99106315a5..4ce2bbcc01 100644
--- a/nix/buildLisp/default.nix
+++ b/nix/buildLisp/default.nix
@@ -9,7 +9,7 @@
 
 let
   inherit (builtins) map elemAt match;
-  inherit (pkgs.third_party) lib runCommandNoCC writeText sbcl;
+  inherit (pkgs.third_party) lib runCommandNoCC writeText writeShellScriptBin sbcl;
 
   #
   # Internal helper definitions
@@ -83,7 +83,9 @@ let
 
   # 'sbclWith' creates an image with the specified libraries /
   # programs loaded.
-  sbclWith = {};
+  sbclWith = deps: writeShellScriptBin "sbcl" ''
+    exec ${sbcl}/bin/sbcl ${insertLibraryLoads deps} $@
+  '';
 in {
   library = makeOverridable library;
   program = makeOverridable program;