-
-
Save samueldr/5729d282f878508e18c40bfadcf0e9bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#unzip is needed to extract the archive in unpackphase | |
{wine, unzip, stdenv, fetchurl, writeShellScriptBin}: | |
let | |
name = "demolition-gunner"; | |
exename = "demolition.exe"; | |
in | |
let | |
game-data = stdenv.mkDerivation rec { | |
inherit name; | |
src = fetchurl { | |
url = http://ftp.vector.co.jp/43/52/3472/DG_ISAD_v2.zip; | |
sha256 = "1q2qa1jn89k94ar9ql9biz9401iwgr49sb0lxgr3i926gvvia2z1"; | |
}; | |
buildInputs = [ unzip ]; | |
propagatedBuildInputs = [ wine ]; | |
installPhase = '' | |
mkdir -p $out/share/${name} | |
cp -prf . $out/share/${name} | |
''; | |
}; | |
in | |
writeShellScriptBin name '' | |
#!/bin/sh | |
set -x | |
cd "${game-data}/share/${name}" | |
exec "${wine}/bin/wine" "${exename}" "$@" | |
'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment