chore(buildLisp): use lib.optionalString where applicable
This commit is contained in:
parent
ccbac831d3
commit
30286d5454
1 changed files with 1 additions and 4 deletions
|
@ -167,10 +167,7 @@ let
|
|||
let lispDeps = filter (d: !d.lispBinary) (allDeps deps);
|
||||
in writeShellScriptBin "sbcl" ''
|
||||
export LD_LIBRARY_PATH=${lib.makeLibraryPath (allNative [] lispDeps)};
|
||||
exec ${sbcl}/bin/sbcl ${
|
||||
if deps == [] then ""
|
||||
else "--load ${writeText "load.lisp" (genLoadLisp lispDeps)}"
|
||||
} $@
|
||||
exec ${sbcl}/bin/sbcl ${lib.optionalString (deps != []) "--load ${writeText "load.lisp" (genLoadLisp lispDeps)}"} $@
|
||||
'';
|
||||
in {
|
||||
library = makeOverridable library;
|
||||
|
|
Loading…
Reference in a new issue