qtbase: fix sed syntax in .pc file fixup
This commit is contained in:
@@ -269,9 +269,12 @@ stdenv.mkDerivation {
|
|||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
''
|
||||||
|
|
||||||
# fixup .pc file (where to find 'moc' etc.)
|
# 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) ''
|
||||||
|
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
|
||||||
|
-e "/^host_bins=/ c host_bins=$dev/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
inherit lndir;
|
inherit lndir;
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ stdenv.mkDerivation {
|
|||||||
# fixup .pc file (where to find 'moc' etc.)
|
# fixup .pc file (where to find 'moc' etc.)
|
||||||
+ lib.optionalString (!stdenv.isDarwin) ''
|
+ lib.optionalString (!stdenv.isDarwin) ''
|
||||||
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
|
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
|
||||||
"s|^host_bins=.*|host_bins=$dev/bin|"
|
-e "/^host_bins=/ c host_bins=$dev/bin"
|
||||||
''
|
''
|
||||||
|
|
||||||
# Don't move .prl files on darwin because they end up in
|
# Don't move .prl files on darwin because they end up in
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ stdenv.mkDerivation {
|
|||||||
# fixup .pc file (where to find 'moc' etc.)
|
# fixup .pc file (where to find 'moc' etc.)
|
||||||
+ lib.optionalString (!stdenv.isDarwin) ''
|
+ lib.optionalString (!stdenv.isDarwin) ''
|
||||||
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
|
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
|
||||||
"s|^host_bins=.*|host_bins=$dev/bin|"
|
-e "/^host_bins=/ c host_bins=$dev/bin"
|
||||||
''
|
''
|
||||||
|
|
||||||
# Don't move .prl files on darwin because they end up in
|
# Don't move .prl files on darwin because they end up in
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ stdenv.mkDerivation {
|
|||||||
# fixup .pc file (where to find 'moc' etc.)
|
# fixup .pc file (where to find 'moc' etc.)
|
||||||
+ lib.optionalString (!stdenv.isDarwin) ''
|
+ lib.optionalString (!stdenv.isDarwin) ''
|
||||||
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
|
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
|
||||||
"s|^host_bins=.*|host_bins=$dev/bin|"
|
-e "/^host_bins=/ c host_bins=$dev/bin"
|
||||||
''
|
''
|
||||||
|
|
||||||
# Don't move .prl files on darwin because they end up in
|
# Don't move .prl files on darwin because they end up in
|
||||||
|
|||||||
Reference in New Issue
Block a user