forked from mirrors/nixpkgs
qtbase: fix sed syntax in .pc file fixup
This commit is contained in:
parent
bf6c90ed67
commit
e24261ed16
|
@ -269,9 +269,12 @@ 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" \
|
||||
-e "/^host_bins=/ c host_bins=$dev/bin"
|
||||
'';
|
||||
|
||||
inherit lndir;
|
||||
|
|
|
@ -272,7 +272,7 @@ stdenv.mkDerivation {
|
|||
# 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|"
|
||||
-e "/^host_bins=/ c host_bins=$dev/bin"
|
||||
''
|
||||
|
||||
# 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.)
|
||||
+ lib.optionalString (!stdenv.isDarwin) ''
|
||||
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
|
||||
|
|
|
@ -230,7 +230,7 @@ stdenv.mkDerivation {
|
|||
# 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|"
|
||||
-e "/^host_bins=/ c host_bins=$dev/bin"
|
||||
''
|
||||
|
||||
# Don't move .prl files on darwin because they end up in
|
||||
|
|
Loading…
Reference in a new issue