mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
qtbase: don't patch non-existent .pc files on Darwin
This commit is contained in:
parent
1b73890f5b
commit
66bc2135f6
@ -267,10 +267,20 @@ 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"
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
# 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
|
||||
# are in lib, and so do not cause a subsequent recreation of deep
|
||||
# framework directory trees.
|
||||
+ lib.optionalString stdenv.isDarwin ''
|
||||
fixDarwinDylibNames_rpath() {
|
||||
local flags=()
|
||||
|
||||
|
@ -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
|
||||
|
@ -225,10 +225,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
|
||||
|
Loading…
Reference in New Issue
Block a user