diff options
author | Thomas Tuegel <ttuegel@mailbox.org> | 2017-03-10 09:23:05 -0600 |
---|---|---|
committer | Thomas Tuegel <ttuegel@mailbox.org> | 2017-03-10 09:23:05 -0600 |
commit | 66bc2135f6c374ffba8e351a51a2d836a8da5d62 (patch) | |
tree | a91f439fadd5ee8babe403a328a3a23b0b13924c /pkgs/development/libraries/qt-5/5.7 | |
parent | 1b73890f5bef0ebc3b3f60d03314bd203e0676fb (diff) |
qtbase: don't patch non-existent .pc files on Darwin
Diffstat (limited to 'pkgs/development/libraries/qt-5/5.7')
-rw-r--r-- | pkgs/development/libraries/qt-5/5.7/qtbase/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/libraries/qt-5/5.7/qtbase/default.nix b/pkgs/development/libraries/qt-5/5.7/qtbase/default.nix index 7f0c71f64b258..8829b33acf61c 100644 --- a/pkgs/development/libraries/qt-5/5.7/qtbase/default.nix +++ b/pkgs/development/libraries/qt-5/5.7/qtbase/default.nix @@ -228,10 +228,14 @@ stdenv.mkDerivation { done popd fi + '' - # fixup .pc file (where to find 'moc' etc.) - sed "s|^host_bins=.*|host_bins=$dev/bin|" -i "$dev/lib/pkgconfig/Qt5Core.pc" + # fixup .pc file (where to find 'moc' etc.) + + lib.optionalString (!stdenv.isDarwin) '' + sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \ + "s|^host_bins=.*|host_bins=$dev/bin|" '' + # Don't move .prl files on darwin because they end up in # "dev/lib/Foo.framework/Foo.prl" which interferes with subsequent # use of lndir in the qtbase setup-hook. On Linux, the .prl files |