openttd: Update graphics and sound packs

This commit is contained in:
Stefan Frijters 2021-04-01 17:36:14 +02:00
parent 914c2b7a22
commit 9fd13c1524
No known key found for this signature in database
GPG Key ID: 7619A6BC6E7DFA6F

View File

@ -6,18 +6,18 @@
let
opengfx = fetchzip {
url = "https://cdn.openttd.org/opengfx-releases/0.6.0/opengfx-0.6.0-all.zip";
sha256 = "1zg871j6kv7r0aqwca68d9kdf3smclgzan8hj76vj4fyfkykh173";
url = "https://cdn.openttd.org/opengfx-releases/0.6.1/opengfx-0.6.1-all.zip";
sha256 = "sha256-DeeIlLcmPeMZ0ju9DwXUInnQp2rWu60besDVto4+lDQ=";
};
opensfx = fetchzip {
url = "https://cdn.openttd.org/opensfx-releases/0.2.3/opensfx-0.2.3-all.zip";
sha256 = "1bb167kszdd6dqbcdjrxxwab6b7y7jilhzi3qijdhprpm5gf1lp3";
url = "https://cdn.openttd.org/opensfx-releases/1.0.1/opensfx-1.0.1-all.zip";
sha256 = "sha256-U1PIKbMZHRJ0Z9Cp2RqqCMhD1xRyudoNHAYIZyotxVk=";
};
openmsx = fetchzip {
url = "https://cdn.openttd.org/openmsx-releases/0.3.1/openmsx-0.3.1-all.zip";
sha256 = "0qnmfzz0v8vxrrvxnm7szphrlrlvhkwn3y92b4iy0b4b6yam0yd4";
url = "https://cdn.openttd.org/openmsx-releases/0.4.0/openmsx-0.4.0-all.zip";
sha256 = "sha256-Ok6W+iqi4SP7cD4HUQERrAysvVibnN7Q4/tkugffDgQ=";
};
playmidi = writeScriptBin "playmidi" ''
@ -48,19 +48,19 @@ stdenv.mkDerivation rec {
postInstall = ''
${lib.optionalString withOpenGFX ''
cp ${opengfx}/* $out/share/games/openttd/baseset
cp ${opengfx}/*.tar $out/share/games/openttd/baseset
''}
mkdir -p $out/share/games/openttd/data
${lib.optionalString withOpenSFX ''
cp ${opensfx}/*.{obs,cat} $out/share/games/openttd/data
cp ${opensfx}/*.tar $out/share/games/openttd/data
''}
mkdir $out/share/games/openttd/baseset/openmsx
${lib.optionalString withOpenMSX ''
cp ${openmsx}/*.{obm,mid} $out/share/games/openttd/baseset/openmsx
cp ${openmsx}/*.tar $out/share/games/openttd/baseset/openmsx
''}
${lib.optionalString withFluidSynth ''