https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
11 lines
219 B
Bash
11 lines
219 B
Bash
unpackPhase="unpackGog"
|
|
|
|
unpackGog() {
|
|
runHook preUnpackGog
|
|
|
|
innoextract --silent --extract --exclude-temp "${src}"
|
|
|
|
find . -depth -print -execdir rename -f 'y/A-Z/a-z/' '{}' \;
|
|
|
|
runHook postUnpackGog
|
|
}
|