Merge pull request #37253 from LnL7/darwin-communi
communi: fix darwin build
This commit is contained in:
commit
7796075209
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
|||||||
"
|
"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
substituteInPlace "$out/share/applications/communi.desktop" \
|
substituteInPlace "$out/share/applications/communi.desktop" \
|
||||||
--replace "/usr/bin" "$out/bin"
|
--replace "/usr/bin" "$out/bin"
|
||||||
'';
|
'';
|
||||||
|
@ -19,12 +19,16 @@ stdenv.mkDerivation rec {
|
|||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
dontUseQmakeConfigure = true;
|
dontUseQmakeConfigure = true;
|
||||||
configureFlags = "-config release";
|
configureFlags = [ "-config" "release" ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
sed -i -e 's|/bin/pwd|pwd|g' configure
|
sed -i -e 's|/bin/pwd|pwd|g' configure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = true;
|
# The tests fail on darwin because of install_name if they run
|
||||||
|
# before the frameworks are installed.
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckTarget = "check";
|
||||||
|
|
||||||
# Hack to avoid TMPDIR in RPATHs.
|
# Hack to avoid TMPDIR in RPATHs.
|
||||||
preFixup = "rm -rf lib";
|
preFixup = "rm -rf lib";
|
||||||
|
Loading…
Reference in New Issue
Block a user