mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
fe1c7a1945
they're obsolete
17 lines
558 B
Bash
17 lines
558 B
Bash
# This setup hook causes the fixup phase to repack all JAR files in a
|
|
# canonical & deterministic fashion, e.g. resetting mtimes (like with normal
|
|
# store files) and avoiding impure metadata.
|
|
|
|
fixupOutputHooks+=('if [ -z "$dontCanonicalizeJars" -a -e "$prefix" ]; then canonicalizeJarsIn "$prefix"; fi')
|
|
|
|
canonicalizeJarsIn() {
|
|
local dir="$1"
|
|
echo "canonicalizing jars in $dir"
|
|
dir="$(realpath -sm -- "$dir")"
|
|
while IFS= read -rd '' f; do
|
|
canonicalizeJar "$f"
|
|
done < <(find -- "$dir" -type f -name '*.jar' -print0)
|
|
}
|
|
|
|
source @canonicalize_jar@
|