diff options
author | edef <edef@edef.eu> | 2020-01-24T13·30+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-01-24T22·18+0000 |
commit | 30286d54549221169b88049072eb4aebc9d0632e (patch) | |
tree | 32f7e41ae5fc38b8e798deb66a9de3e1f8127e63 /nix/buildLisp/default.nix | |
parent | ccbac831d326836b33a9f79b9e545d7bb247eb86 (diff) |
chore(buildLisp): use lib.optionalString where applicable r/455
Diffstat (limited to '')
-rw-r--r-- | nix/buildLisp/default.nix | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/nix/buildLisp/default.nix b/nix/buildLisp/default.nix index b8f3402ad109..6df1522748c9 100644 --- a/nix/buildLisp/default.nix +++ b/nix/buildLisp/default.nix @@ -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; |