Fix prismlauncher rebuilding on every update
Retreiving the hook from nixpkgs-unstable causes the derivation to change since the store path of nixpkgs-unstable changes
This commit is contained in:
parent
d4aacdc21b
commit
dcd11dec49
@ -25,7 +25,7 @@ let
|
|||||||
stripJavaArchivesHook = final.makeSetupHook {
|
stripJavaArchivesHook = final.makeSetupHook {
|
||||||
name = "strip-java-archives-hook";
|
name = "strip-java-archives-hook";
|
||||||
propagatedBuildInputs = [ final.strip-nondeterminism ];
|
propagatedBuildInputs = [ final.strip-nondeterminism ];
|
||||||
} "${nixfiles.inputs.nixpkgs-unstable}/pkgs/build-support/setup-hooks/strip-java-archives.sh";
|
} ./strip-java-archives.sh;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
vesktop = backport' "vesktop";
|
vesktop = backport' "vesktop";
|
||||||
|
16
overlays/strip-java-archives.sh
Normal file
16
overlays/strip-java-archives.sh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# This setup hook makes the fixup phase to repack all java archives in a
|
||||||
|
# deterministic fashion. The most important change being done is the resetting
|
||||||
|
# of the modification times of the archive entries
|
||||||
|
|
||||||
|
fixupOutputHooks+=('stripJavaArchivesIn $prefix')
|
||||||
|
|
||||||
|
stripJavaArchivesIn() {
|
||||||
|
local dir="$1"
|
||||||
|
echo "stripping java archives in $dir"
|
||||||
|
find $dir -type f -regextype posix-egrep -regex ".*\.(jar|war|hpi|apk)$" -print0 |
|
||||||
|
while IFS= read -rd '' f; do
|
||||||
|
echo "stripping java archive $f"
|
||||||
|
strip-nondeterminism --type jar "$f"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user