feat(buildLisp): Add function to wrap SBCL with dependencies
Adds `buildLisp.sbclWith` which creates an SBCL wrapper the contains all the requested dependencies.
This commit is contained in:
parent
ca199a57d9
commit
b5e1e81a3d
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue