9 # Construct a copy of libidn2.* where all (transitive) libc references (in .bin)
10 # get replaced by a new one, so that there's no reference to bootstrap tools.
11 runCommandLocal "${libidn2.pname}-${libidn2.version}"
19 inherit (libidn2) out info devdoc; # no need to touch these store paths
21 inherit (libidn2) meta;
24 cp -r '${libidn2.bin}' "$bin"
27 --set-interpreter '${stdenv.cc.bintools.dynamicLinker}' \
29 lib.concatMapStringsSep ":" (p: lib.getLib p + "/lib") [
37 cp -r '${libidn2.dev}' "$dev"
38 chmod +w "$dev"/nix-support/propagated-build-inputs
39 substituteInPlace "$dev"/nix-support/propagated-build-inputs \
40 --replace '${libidn2.bin}' "$bin"
41 substituteInPlace "$dev"/lib/pkgconfig/libidn2.pc \
42 --replace '${libidn2.dev}' "$dev"
44 ln -s '${libidn2.out}' "$out" # it's hard to be without any $out