forked from mirrors/nixpkgs
build-support gogUnpackHook: support for unpacking games from gog.com
This commit is contained in:
parent
646abe9b29
commit
126cc690ac
11
pkgs/build-support/setup-hooks/gog-unpack.sh
Normal file
11
pkgs/build-support/setup-hooks/gog-unpack.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
unpackPhase="unpackGog"
|
||||
|
||||
unpackGog() {
|
||||
runHook preUnpackGog
|
||||
|
||||
innoextract --silent --extract --exclude-temp "${src}"
|
||||
|
||||
find . -depth -print -execdir rename -f 'y/A-Z/a-z/' '{}' \;
|
||||
|
||||
runHook postUnpackGog
|
||||
}
|
|
@ -92,6 +92,11 @@ with pkgs;
|
|||
{ substitutions = { gnu_config = gnu-config;}; }
|
||||
../build-support/setup-hooks/update-autotools-gnu-config-scripts.sh;
|
||||
|
||||
gogUnpackHook = makeSetupHook {
|
||||
name = "gog-unpack-hook";
|
||||
deps = [ innoextract file-rename ]; }
|
||||
../build-support/setup-hooks/gog-unpack.sh;
|
||||
|
||||
buildEnv = callPackage ../build-support/buildenv { }; # not actually a package
|
||||
|
||||
buildFHSUserEnv = callPackage ../build-support/build-fhs-userenv { };
|
||||
|
|
Loading…
Reference in a new issue