about summary refs log tree commit diff
path: root/pkgs/development/libraries/galario
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2023-02-06 21:49:02 +0100
committerFelix Buehler <account@buehler.rocks>2023-02-13 21:52:34 +0100
commitcdb39a86e0dd7cda3a057f4f4795485a5c9b9be5 (patch)
tree1fef6e55f39dab2289b68b68972ee4c9b89520f7 /pkgs/development/libraries/galario
parent7f610b4d3f6e6f695b1f5521862066c0ece79a5a (diff)
treewide: use optionalString
Diffstat (limited to 'pkgs/development/libraries/galario')
-rw-r--r--pkgs/development/libraries/galario/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/galario/default.nix b/pkgs/development/libraries/galario/default.nix
index 4000129f557ab..8b54cfb7b8797 100644
--- a/pkgs/development/libraries/galario/default.nix
+++ b/pkgs/development/libraries/galario/default.nix
@@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
 
   preCheck = ''
     ${if stdenv.isDarwin then "export DYLD_LIBRARY_PATH=$(pwd)/src/" else "export LD_LIBRARY_PATH=$(pwd)/src/"}
-    ${if enablePython then "sed -i -e 's|^#!.*|#!${stdenv.shell}|' python/py.test.sh" else ""}
+    ${lib.optionalString enablePython "sed -i -e 's|^#!.*|#!${stdenv.shell}|' python/py.test.sh"}
   '';
 
   cmakeFlags = lib.optionals enablePython [