From cf6dd6cc0c27428746ee372aa55760e70f1c1c43 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sat, 5 Oct 2019 08:15:16 +0300 Subject: Use lib.optionalString for postInstall --- pkgs/development/libraries/gaia/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/development/libraries/gaia') diff --git a/pkgs/development/libraries/gaia/default.nix b/pkgs/development/libraries/gaia/default.nix index fae96568dcf..0809f4d62a1 100644 --- a/pkgs/development/libraries/gaia/default.nix +++ b/pkgs/development/libraries/gaia/default.nix @@ -66,11 +66,11 @@ stdenv.mkDerivation rec { ++ lib.optionals (cyclopsSupport) [ "--with-cyclops" ] ; # only gaiafusion is a python executable that needs patchShebangs - postInstall = (if pythonSupport then '' + postInstall = lib.optionalString '' # We can't use patchShebangs because it will use bare bones $python/bin/python # and we need a python environment with pyyaml wrapProgram $out/bin/gaiafusion --prefix PYTHONPATH : $out/${python.sitePackages}:${pythonEnv}/${python.sitePackages} - '' else ""); + ''; meta = with lib; { homepage = "https://github.com/MTG/gaia"; -- cgit 1.4.1