about summary refs log tree commit diff
path: root/nix/buildLisp
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2020-01-24T13·30+0000
committerVincent Ambo <tazjin@google.com>2020-01-24T22·18+0000
commit30286d54549221169b88049072eb4aebc9d0632e (patch)
tree32f7e41ae5fc38b8e798deb66a9de3e1f8127e63 /nix/buildLisp
parentccbac831d326836b33a9f79b9e545d7bb247eb86 (diff)
chore(buildLisp): use lib.optionalString where applicable r/455
Diffstat (limited to 'nix/buildLisp')
-rw-r--r--nix/buildLisp/default.nix5
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;