chore(buildLisp): use lib.optionalString where applicable

This commit is contained in:
edef 2020-01-24 13:30:13 +00:00 committed by Vincent Ambo
parent ccbac831d3
commit 30286d5454

View file

@ -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;