mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
Merge pull request #130587 from hrhino/fix/simutrans
simutrans: 120.4.1 -> 121.0.0
This commit is contained in:
commit
05a32fe4b7
|
@ -11,28 +11,28 @@ let
|
|||
else map (name: pakSpec.${name}) (splitString " " paksets)
|
||||
);
|
||||
|
||||
ver1 = "120";
|
||||
ver2 = "4";
|
||||
ver3 = "1";
|
||||
version = "${ver1}.${ver2}.${ver3}";
|
||||
ver_dash = "${ver1}-${ver2}-${ver3}";
|
||||
ver1 = "121";
|
||||
ver2 = "0";
|
||||
ver3 = "";
|
||||
version = "${ver1}.${ver2}${lib.optionalString (ver3 != "") ".${ver3}"}";
|
||||
ver_dash = "${ver1}-${ver2}${lib.optionalString (ver3 != "") "-${ver3}"}";
|
||||
|
||||
binary_src = fetchurl {
|
||||
url = "mirror://sourceforge/simutrans/simutrans/${ver_dash}/simutrans-src-${ver_dash}.zip";
|
||||
sha256 = "0yw7vjvmczp022mgk35swwhpbiszpz91mwsgicxglwivgc30vvic";
|
||||
sha256 = "1f463r6kr5ig0zd3mncc74k93xbjywsq3d06j5r17831jyc9bzb9";
|
||||
};
|
||||
|
||||
|
||||
# As of 2015/03, many packsets still didn't have a release for version 120.
|
||||
# As of 2021/07, many of these paksets have not been updated for years, so are on old versions.
|
||||
pakSpec = lib.mapAttrs
|
||||
(pakName: attrs: mkPak (attrs // {inherit pakName;}))
|
||||
{
|
||||
pak64 = {
|
||||
srcPath = "121-0/simupak64-121-0";
|
||||
srcPath = "${ver_dash}/simupak64-${ver_dash}";
|
||||
sha256 = "1k335kh8dhm1hdn5iwn3sdgnrlpk0rqxmmgqgqcwsi09cmw45m5c";
|
||||
};
|
||||
"pak64.japan" = {
|
||||
# No release for 120.2 yet!
|
||||
# No release for 121.0 yet!
|
||||
srcPath = "120-0/simupak64.japan-120-0-1";
|
||||
sha256 = "14swy3h4ij74bgaw7scyvmivfb5fmp21nixmhlpk3mav3wr3167i";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue