about summary refs log tree commit diff
path: root/pkgs/development/libraries/icu
diff options
context:
space:
mode:
authorzlepper <hansen13579@gmail.com>2024-04-17 14:40:37 +0200
committerMario Rodas <marsam@users.noreply.github.com>2024-04-17 14:40:37 +0200
commit3083d2abe37408a713f325d901e1f3e01edc8f66 (patch)
tree1a39abde1f055d2ba976fbeac38c253115c213d2 /pkgs/development/libraries/icu
parent110cf9732b0d479b872067f9a7fc8dba548053d7 (diff)
icu: refactor to avoid runtime dependency on bash
Bash was considered a runtime dependency as the two files `install-sh`
and `mkinstalldirs` was included in the library output. These files has a shebang
for `#!/bin/sh` which is replaced by nix to point to bash in the fixup phase.
Diffstat (limited to 'pkgs/development/libraries/icu')
-rw-r--r--pkgs/development/libraries/icu/make-icu.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/icu/make-icu.nix b/pkgs/development/libraries/icu/make-icu.nix
index 836a7e3c73a69..b130c346dbaa3 100644
--- a/pkgs/development/libraries/icu/make-icu.nix
+++ b/pkgs/development/libraries/icu/make-icu.nix
@@ -75,6 +75,8 @@ let
         { from = "\${pkglibdir}/pkgdata.inc"; to = "${placeholder "dev"}/lib/icu/pkgdata.inc"; } # --incpkgdatafile
       ];
     in ''
+      rm $out/share/icu/${version}/install-sh $out/share/icu/${version}/mkinstalldirs # Avoid having a runtime dependency on bash
+
       substituteInPlace "$dev/bin/icu-config" \
         ${lib.concatMapStringsSep " " (r: "--replace '${r.from}' '${r.to}'") replacements}
     '');