about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 99106315a56a..4ce2bbcc010b 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;