nixpkgs/pkgs/games/openra_2019/engines.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.3 KiB
Nix
Raw Normal View History

2022-05-17 21:10:33 +02:00
{ buildOpenRAEngine, fetchFromGitHub, postFetch }:
2019-01-02 01:05:51 +01:00
let
buildUpstreamOpenRAEngine = { version, rev, sha256 }: name: (buildOpenRAEngine {
inherit version;
description = "Open-source re-implementation of Westwood Studios' 2D Command and Conquer games";
homepage = "https://www.openra.net/";
2019-01-02 01:05:51 +01:00
mods = [ "cnc" "d2k" "ra" "ts" ];
src = fetchFromGitHub {
owner = "OpenRA";
repo = "OpenRA" ;
2022-05-17 21:10:33 +02:00
inherit rev sha256 postFetch;
2019-01-02 01:05:51 +01:00
};
2019-01-29 01:33:21 +01:00
} name).overrideAttrs (origAttrs: {
2019-01-02 01:05:51 +01:00
postInstall = ''
2019-01-29 01:33:21 +01:00
${origAttrs.postInstall}
2019-01-02 01:05:51 +01:00
cp -r mods/ts $out/lib/openra/mods/
cp mods/ts/icon.png $(mkdirp $out/share/pixmaps)/openra-ts.png
( cd $out/share/applications; sed -e 's/Dawn/Sun/g' -e 's/cnc/ts/g' openra-cnc.desktop > openra-ts.desktop )
'';
});
in {
2019-01-29 01:33:21 +01:00
release = name: (buildUpstreamOpenRAEngine rec {
version = "20190314";
2019-01-29 01:33:21 +01:00
rev = "${name}-${version}";
sha256 = "15pvn5cx3g0nzbrgpsfz8dngad5wkzp5dz25ydzn8bmxafiijvcr";
2019-01-29 01:33:21 +01:00
} name);
2019-01-02 01:05:51 +01:00
2019-01-29 01:33:21 +01:00
playtest = name: (buildUpstreamOpenRAEngine rec {
version = "20190302";
2019-01-29 01:33:21 +01:00
rev = "${name}-${version}";
sha256 = "1vqvfk2p2lpk3m0d3rpvj34i8cmk3mfc7w4cn4llqd9zp4kk9pya";
2019-01-29 01:33:21 +01:00
} name);
2019-01-02 01:05:51 +01:00
2019-01-29 01:33:21 +01:00
bleed = buildUpstreamOpenRAEngine {
version = "8ee1102";
rev = "8ee11028d72cde7556b31d45f556b40be65b4b70";
sha256 = "0f1fpf37ms8d7fhlh3rjzsxsk9w23iyi3phs2i7g561292d5rk3l";
2019-01-02 01:05:51 +01:00
};
}