Use lib.optionalString for postInstall
This commit is contained in:
parent
f9391a2ca8
commit
cf6dd6cc0c
@ -66,11 +66,11 @@ stdenv.mkDerivation rec {
|
|||||||
++ lib.optionals (cyclopsSupport) [ "--with-cyclops" ]
|
++ lib.optionals (cyclopsSupport) [ "--with-cyclops" ]
|
||||||
;
|
;
|
||||||
# only gaiafusion is a python executable that needs patchShebangs
|
# 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
|
# We can't use patchShebangs because it will use bare bones $python/bin/python
|
||||||
# and we need a python environment with pyyaml
|
# and we need a python environment with pyyaml
|
||||||
wrapProgram $out/bin/gaiafusion --prefix PYTHONPATH : $out/${python.sitePackages}:${pythonEnv}/${python.sitePackages}
|
wrapProgram $out/bin/gaiafusion --prefix PYTHONPATH : $out/${python.sitePackages}:${pythonEnv}/${python.sitePackages}
|
||||||
'' else "");
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/MTG/gaia";
|
homepage = "https://github.com/MTG/gaia";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user