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