openttd: 13.4 -> 14.0

openttd: switch fetchurl to fetchzip

openttd: remove fetchurl from input args
This commit is contained in:
DamitusThyYeetus123 2024-04-14 15:56:39 +10:00 committed by Damii
parent a4a608e794
commit f81ed653e1

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchzip, cmake, pkg-config
{ lib, stdenv, fetchzip, cmake, pkg-config
, SDL2, libpng, zlib, xz, freetype, fontconfig
, nlohmann_json, curl, icu, harfbuzz, expat, glib, pcre2
, withOpenGFX ? true, withOpenSFX ? true, withOpenMSX ? true
@ -32,11 +32,11 @@ let
in
stdenv.mkDerivation rec {
pname = "openttd";
version = "13.4";
version = "14.0";
src = fetchurl {
src = fetchzip {
url = "https://cdn.openttd.org/openttd-releases/${version}/${pname}-${version}-source.tar.xz";
hash = "sha256-Kh3roBv+WOIYiHn0UMP6TzgZJxq0m/NI3WZUXwQNFG8=";
hash = "sha256-7wOyP2h5qHNFjdmHf/62W+cAb6C+UEBPswPx48p3AjU=";
};
nativeBuildInputs = [ cmake pkg-config makeWrapper ];