zoekt: 3.7.2-2-unstable-2024-10-24 -> 3.7.2-2-unstable-2024-12-09 (#363818)
[NixPkgs.git] / pkgs / games / openra_2019 / mods.nix
bloba9f95d0f25c815508c6db6f2a343f30b0a387d69
2   buildOpenRAMod,
3   fetchFromGitHub,
4   postFetch,
5 }:
7 let
8   unsafeBuildOpenRAMod =
9     attrs: name:
10     (buildOpenRAMod attrs name).overrideAttrs (_: {
11       doCheck = false;
12     });
16   ca = buildOpenRAMod {
17     version = "96.git.fc3cf0b";
18     title = "Combined Arms";
19     description = "A game that combines units from the official OpenRA Red Alert and Tiberian Dawn mods";
20     homepage = "https://github.com/Inq8/CAmod";
21     src = fetchFromGitHub {
22       owner = "Inq8";
23       repo = "CAmod";
24       rev = "fc3cf0baf2b827650eaae9e1d2335a3eed24bac9";
25       sha256 = "15w91xs253gyrlzsgid6ixxjazx0fbzick6vlkiay0znb58n883m";
26     };
27     engine = {
28       version = "b8a7dd5";
29       src = fetchFromGitHub {
30         owner = "Inq8";
31         repo = "CAengine";
32         rev = "b8a7dd52ff893ed8225726d4ed4e14ecad748404";
33         sha256 = "0dyk861qagibx8ldshz7d2nrki9q550f6f0wy8pvayvf1gv1dbxj";
34         name = "engine";
35         inherit postFetch;
36       };
37     };
38   };
40   d2 = unsafeBuildOpenRAMod rec {
41     version = "134.git.69a4aa7";
42     title = "Dune II";
43     description = "A modernization of the original ${title} game";
44     homepage = "https://github.com/OpenRA/d2";
45     src = fetchFromGitHub {
46       owner = "OpenRA";
47       repo = "d2";
48       rev = "69a4aa708e2c26376469c0048fac13592aa452ca";
49       sha256 = "1mfch4s6c05slyqvxllklbxpqq8dqcbx3515n3gyylyq43gq481r";
50     };
51     engine = rec {
52       version = "release-20181215";
53       mods = [
54         "cnc"
55         "d2k"
56         "ra"
57       ];
58       src = fetchFromGitHub {
59         owner = "OpenRA";
60         repo = "OpenRA";
61         rev = version;
62         sha256 = "0p0izykjnz7pz02g2khp7msqa00jhjsrzk9y0g29dirmdv75qa4r";
63         name = "engine";
64         inherit postFetch;
65       };
66     };
67     assetsError = ''
68       The mod expects the original ${title} game assets in place:
69       https://github.com/OpenRA/d2/wiki
70     '';
71   };
73   dr = buildOpenRAMod rec {
74     version = "324.git.ffcd6ba";
75     title = "Dark Reign";
76     description = "A re-imagination of the original Command & Conquer: ${title} game";
77     homepage = "https://github.com/drogoganor/DarkReign";
78     src = fetchFromGitHub {
79       owner = "drogoganor";
80       repo = "DarkReign";
81       rev = "ffcd6ba72979e5f77508136ed7b0efc13e4b100e";
82       sha256 = "07g4qw909649s3i1yhw75613mpwfka05jana5mpp5smhnf0pkack";
83     };
84     engine = {
85       version = "DarkReign";
86       src = fetchFromGitHub {
87         owner = "drogoganor";
88         repo = "OpenRA";
89         rev = "f91d3f2603bbf51afaa89357e4defcdc36138102";
90         sha256 = "05g900ri6q0zrkrk8rmjaz576vjggmi2y6jm0xz3cwli54prn11w";
91         name = "engine";
92         inherit postFetch;
93       };
94     };
95   };
97   gen = buildOpenRAMod {
98     version = "1157.git.4f5e11d";
99     title = "Generals Alpha";
100     description = "Re-imagination of the original Command & Conquer: Generals game";
101     homepage = "https://github.com/MustaphaTR/Generals-Alpha";
102     src = fetchFromGitHub {
103       owner = "MustaphaTR";
104       repo = "Generals-Alpha";
105       rev = "4f5e11d916e4a03d8cf1c97eef484ce2d77d7df2";
106       sha256 = "1wnl4qrlhynnlahgdlxwhgsdba5wgdg9yrv9f8hkgi69j60szypd";
107     };
108     engine = rec {
109       version = "gen-20190128_3";
110       src = fetchFromGitHub {
111         owner = "MustaphaTR";
112         repo = "OpenRA";
113         rev = version;
114         sha256 = "1x6byz37s8qcpqj902zvkvbv95rv2mv2kj35c12gbpyc92xkqkq0";
115         name = "generals-alpha-engine";
116         inherit postFetch;
117       };
118     };
119   };
121   kknd =
122     let
123       version = "145.git.5530bab";
124     in
125     name:
126     (buildOpenRAMod rec {
127       inherit version;
128       title = "Krush, Kill 'n' Destroy";
129       description = "Re-imagination of the original ${title} game";
130       homepage = "https://kknd-game.com/";
131       src = fetchFromGitHub {
132         owner = "IceReaper";
133         repo = "KKnD";
134         rev = "5530babcb05170e0959e4cf2b079161e9fedde4f";
135         sha256 = "07jczrarmgm6zdk0myzwgq200x19yvpjyxrnhdac08mjgyz75zk1";
136       };
137       engine = {
138         version = "4e8eab4ca00d1910203c8a103dfd2c002714daa8";
139         src = fetchFromGitHub {
140           owner = "IceReaper";
141           repo = "OpenRA";
142           # commit does not exist on any branch on the target repository
143           rev = "4e8eab4ca00d1910203c8a103dfd2c002714daa8";
144           sha256 = "1yyqparf93x8yzy1f46gsymgkj5jls25v2yc7ighr3f7mi3igdvq";
145           name = "engine";
146           inherit postFetch;
147         };
148       };
149     } name).overrideAttrs
150       (origAttrs: {
151         postPatch = ''
152           ${origAttrs.postPatch}
153           sed -i 's/{DEV_VERSION}/${version}/' mods/*/mod.yaml
154         '';
155       });
157   mw = buildOpenRAMod rec {
158     version = "257.git.c9be8f2";
159     title = "Medieval Warfare";
160     description = "A re-imagination of the original Command & Conquer: ${title} game";
161     homepage = "https://github.com/CombinE88/Medieval-Warfare";
162     src = fetchFromGitHub {
163       owner = "CombinE88";
164       repo = "Medieval-Warfare";
165       rev = "c9be8f2a6f1dd710b1aedd9d5b00b4cf5020e2fe";
166       sha256 = "09fp7k95jd6hjqdasbspbd43z5670wkyzbbgqkll9dfsrv0sky0v";
167     };
168     engine = {
169       version = "MedievalWarfareEngine";
170       src = fetchFromGitHub {
171         owner = "CombinE88";
172         repo = "OpenRA";
173         rev = "52109c0910f479753704c46fb19e8afaab353c83";
174         sha256 = "0ga3855j6bc7h81q03cw6laiaiz12915zg8aqah1idvxbzicfy7l";
175         name = "engine";
176         inherit postFetch;
177       };
178     };
179   };
181   ra2 = buildOpenRAMod rec {
182     version = "903.git.2f7c700";
183     title = "Red Alert 2";
184     description = "Re-imagination of the original Command & Conquer: ${title} game";
185     homepage = "https://github.com/OpenRA/ra2";
186     src = fetchFromGitHub {
187       owner = "OpenRA";
188       repo = "ra2";
189       rev = "2f7c700d6d63c0625e7158ef3098221fa6741569";
190       sha256 = "11vnzwczn47wjfrq6y7z9q234p27ihdrcl5p87i6h2xnrpwi8b6m";
191     };
192     engine = rec {
193       version = "release-20180923";
194       src = fetchFromGitHub {
195         owner = "OpenRA";
196         repo = "OpenRA";
197         rev = version;
198         sha256 = "1pgi3zaq9fwwdq6yh19bwxscslqgabjxkvl9bcn1a5agy4bfbqk5";
199         name = "engine";
200         inherit postFetch;
201       };
202     };
203     assetsError = ''
204       The mod expects the original ${title} game assets in place:
205       https://github.com/OpenRA/ra2/wiki
206     '';
207   };
209   raclassic = buildOpenRAMod {
210     version = "183.git.c76c13e";
211     title = "Red Alert Classic";
212     description = "A modernization of the original Command & Conquer: Red Alert game";
213     homepage = "https://github.com/OpenRA/raclassic";
214     src = fetchFromGitHub {
215       owner = "OpenRA";
216       repo = "raclassic";
217       rev = "c76c13e9f0912a66ddebae8d05573632b19736b2";
218       sha256 = "1cnr3ccvrkjlv8kkdcglcfh133yy0fkva9agwgvc7wlj9n5ydl4g";
219     };
220     engine = rec {
221       version = "release-20190314";
222       src = fetchFromGitHub {
223         owner = "OpenRA";
224         repo = "OpenRA";
225         rev = version;
226         sha256 = "15pvn5cx3g0nzbrgpsfz8dngad5wkzp5dz25ydzn8bmxafiijvcr";
227         name = "engine";
228         inherit postFetch;
229       };
230     };
231   };
233   rv = unsafeBuildOpenRAMod {
234     version = "1330.git.9230e6f";
235     title = "Romanov's Vengeance";
236     description = "Re-imagination of the original Command & Conquer: Red Alert 2 game";
237     homepage = "https://github.com/MustaphaTR/Romanovs-Vengeance";
238     src = fetchFromGitHub {
239       owner = "MustaphaTR";
240       repo = "Romanovs-Vengeance";
241       rev = "9230e6f1dd9758467832aee4eda115e18f0e635f";
242       sha256 = "0bwbmmlhp1kh8rgk2nx1ca9vqssj849amndacf318d61gksc1w9n";
243     };
244     engine = {
245       version = "f3873ae";
246       mods = [ "as" ];
247       src = fetchFromGitHub {
248         owner = "AttacqueSuperior";
249         repo = "Engine";
250         rev = "f3873ae242803051285994d77eb26f4b951594b5";
251         sha256 = "02rv29wja0p5d083pd087daz7x7pp5b9ym7sci2fhg3mrnaqgwkp";
252         name = "engine";
253         inherit postFetch;
254       };
255     };
256     assetsError = ''
257       The mod expects the Command & Conquer: The Ultimate Collection assets in place:
258       https://github.com/OpenRA/ra2/wiki
259     '';
260   };
262   sp = unsafeBuildOpenRAMod {
263     version = "221.git.ac000cc";
264     title = "Shattered Paradise";
265     description = "Re-imagination of the original Command & Conquer: Tiberian Sun game";
266     homepage = "https://github.com/ABrandau/OpenRAModSDK";
267     src = fetchFromGitHub {
268       owner = "ABrandau";
269       repo = "OpenRAModSDK";
270       rev = "ac000cc15377cdf6d3c2b72c737d692aa0ed8bcd";
271       sha256 = "16mzs5wcxj9nlpcyx2c87idsqpbm40lx0rznsccclnlb3hiwqas9";
272     };
273     engine = {
274       version = "SP-22-04-19";
275       mods = [
276         "as"
277         "ts"
278       ];
279       src = fetchFromGitHub {
280         owner = "ABrandau";
281         repo = "OpenRA";
282         rev = "bb0930008a57c07f3002421023f6b446e3e3af69";
283         sha256 = "1jvgpbf56hd02ikhklv49br4d1jiv5hphc5kl79qnjlaacnj222x";
284         name = "engine";
285         inherit postFetch;
286       };
287     };
288   };
290   ss = buildOpenRAMod rec {
291     version = "77.git.23e1f3e";
292     title = "Sole Survivor";
293     description = "A re-imagination of the original Command & Conquer: ${title} game";
294     homepage = "https://github.com/MustaphaTR/sole-survivor";
295     src = fetchFromGitHub {
296       owner = "MustaphaTR";
297       repo = "sole-survivor";
298       rev = "23e1f3e5d8b98c936797b6680d95d56a69a9e2ab";
299       sha256 = "104clmxphchs7r8y7hpmw103bychayz80bqj98bp89i64nv9d89x";
300     };
301     engine = {
302       version = "6de92de";
303       src = fetchFromGitHub {
304         owner = "OpenRA";
305         repo = "OpenRA";
306         rev = "6de92de8d982094a766eab97a92225c240d85493";
307         sha256 = "0ps9x379plrrj1hnj4fpr26lc46mzgxknv5imxi0bmrh5y4781ql";
308         name = "engine";
309         inherit postFetch;
310       };
311     };
312   };
314   ura = buildOpenRAMod {
315     version = "431.git.128dc53";
316     title = "Red Alert Unplugged";
317     description = "Re-imagination of the original Command & Conquer: Red Alert game";
318     homepage = "http://redalertunplugged.com/";
319     src = fetchFromGitHub {
320       owner = "RAunplugged";
321       repo = "uRA";
322       rev = "128dc53741fae923f4af556f2293ceaa0cf571f0";
323       sha256 = "1mhr8kyh313z52gdrqv31d6z7jvdldiajalca5mcr8gzg6mph66p";
324     };
325     engine = rec {
326       version = "unplugged-cd82382";
327       src = fetchFromGitHub {
328         owner = "RAunplugged";
329         repo = "OpenRA";
330         rev = version;
331         sha256 = "1p5hgxxvxlz8480vj0qkmnxjh7zj3hahk312m0zljxfdb40652w1";
332         name = "engine";
333         inherit postFetch;
334       };
335     };
336   };
338   yr = unsafeBuildOpenRAMod rec {
339     version = "199.git.5b8b952";
340     homepage = "https://github.com/cookgreen/yr";
341     title = "Yuri's Revenge";
342     description = "Re-imagination of the original Command & Conquer: ${title} game";
343     src = fetchFromGitHub {
344       owner = "cookgreen";
345       repo = "yr";
346       rev = "5b8b952dbe21f194a6d00485f20e215ce8362712";
347       sha256 = "0hxzrqnz5d7qj1jjr20imiyih62x1cnmndf75nnil4c4sj82f9a6";
348     };
349     engine = rec {
350       version = "release-20190314";
351       src = fetchFromGitHub {
352         owner = "OpenRA";
353         repo = "OpenRA";
354         rev = version;
355         sha256 = "15pvn5cx3g0nzbrgpsfz8dngad5wkzp5dz25ydzn8bmxafiijvcr";
356         name = "engine";
357         inherit postFetch;
358       };
359     };
360     assetsError = ''
361       The mod expects the Command & Conquer: The Ultimate Collection assets in place:
362       https://github.com/OpenRA/ra2/wiki
363     '';
364   };