mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
Merge pull request #72869 from redvers/icu-issue-71142
icu: bugfix #71142 - Fixes icu-config reporting bad location
This commit is contained in:
commit
66488f38b9
@ -63,10 +63,16 @@ let
|
||||
# remove dependency on bootstrap-tools in early stdenv build
|
||||
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
sed -i 's/INSTALL_CMD=.*install/INSTALL_CMD=install/' $out/lib/icu/${version}/pkgdata.inc
|
||||
'' + ''
|
||||
'' + (let
|
||||
replacements = [
|
||||
{ from = "\${prefix}/include"; to = "${placeholder "dev"}/include"; } # --cppflags-searchpath
|
||||
{ from = "\${pkglibdir}/Makefile.inc"; to = "${placeholder "dev"}/lib/icu/Makefile.inc"; } # --incfile
|
||||
{ from = "\${pkglibdir}/pkgdata.inc"; to = "${placeholder "dev"}/lib/icu/pkgdata.inc"; } # --incpkgdatafile
|
||||
];
|
||||
in ''
|
||||
substituteInPlace "$dev/bin/icu-config" \
|
||||
--replace \''${pkglibdir}/Makefile.inc "$dev/lib/icu/Makefile.inc"
|
||||
'';
|
||||
${lib.concatMapStringsSep " " (r: "--replace '${r.from}' '${r.to}'") replacements}
|
||||
'');
|
||||
|
||||
postFixup = ''moveToOutput lib/icu "$dev" '';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user