Admins will be upgrading ORNL GitLab Servers on Saturday, 16 May 2026, from 7 AM until 11 AM EST. Repositories will experience intermittent outages during this time.
# hexPatches: hex patterns to substitute in specified files immediately after
# install. Can be used, for example, to replace the embedded SSL certificates
# for compatibility with a self-hosted Lumina server.
# Since IDA is distributed as a binary, such patching is the only recourse
# available to us for interoperability purposes.
}:
let
patchScript=lib.concatMapStringsSep"\n"(p:
let
forcecntDecl=
lib.optionalString(p?assertCount)
"my $forcecnt = ${toStringp.assertCount};";
in''
perl -0777 -pi -e '${forcecntDecl} my $cnt = (s/\Q''${\pack("H*","${p.from}")}\E/''${\pack("H*","${p.to}")}/g) || 0; die "Expected $forcecnt substitutions, did $cnt\n" if defined $forcecnt && $cnt != $forcecnt' "$IDADIR/${p.filename}"