From 30286d54549221169b88049072eb4aebc9d0632e Mon Sep 17 00:00:00 2001 From: edef Date: Fri, 24 Jan 2020 13:30:13 +0000 Subject: chore(buildLisp): use lib.optionalString where applicable --- nix/buildLisp/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'nix') 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; -- cgit 1.4.1