Skip to content
Permalink
Browse files

openxcom: wip nightly

  • Loading branch information
peterhoeg committed Apr 5, 2019
1 parent 3c37dde commit 967d98535f71d06d69ee616d0da13d4f99c5f6d8
Showing with 47 additions and 22 deletions.
  1. +43 −21 pkgs/games/openxcom/default.nix
  2. +4 −1 pkgs/top-level/all-packages.nix
@@ -1,26 +1,48 @@
{stdenv, fetchFromGitHub, cmake, libGLU_combined, zlib, openssl, libyamlcpp, boost
, SDL, SDL_image, SDL_mixer, SDL_gfx }:

let version = "1.0.0.2018.10.08"; in
stdenv.mkDerivation {
name = "openxcom-${version}";
src = fetchFromGitHub {
owner = "SupSuper";
repo = "OpenXcom";
rev = "13049d617fe762b91893faaf7c14ddefa49e2f1d";
sha256 = "0vpcfk3g1bnwwmrln14jkj2wvw2z8igxw2mdb7c3y66466wm93ig";
};
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, libGL, libGLU, zlib, openssl, libyamlcpp, boost
, SDL, SDL_image, SDL_mixer, SDL_gfx
, SDL2, SDL2_image, SDL2_mixer, SDL2_gfx
}:

let
preferSDL2 = false;

generic = version: rev: sha256: stdenv.mkDerivation rec {
name = "openxcom-${version}";

src = fetchFromGitHub {
owner = "OpenXcom";
repo = "OpenXcom";
inherit rev sha256;
};

nativeBuildInputs = [ cmake pkgconfig ];

buildInputs = [
boost libyamlcpp libGL libGLU openssl zlib
] ++ (if preferSDL2
then [ SDL2 SDL2_gfx SDL2_image SDL2_mixer ]
else [ SDL SDL_gfx SDL_image SDL_mixer ]);

cmakeFlags = [
"-DOpenGL_GL_PREFERENCE=GLVND"
];

nativeBuildInputs = [ cmake ];
buildInputs = [ SDL SDL_gfx SDL_image SDL_mixer boost libyamlcpp libGLU_combined openssl zlib ];
NIX_LDFLAGS = [
"-lGL"
];

meta = {
description = "Open source clone of UFO: Enemy Unknown";
homepage = https://openxcom.org;
repositories.git = https://github.com/SupSuper/OpenXcom.git;
maintainers = [ stdenv.lib.maintainers.cpages ];
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl3;
meta = with stdenv.lib; {
description = "Open source clone of UFO: Enemy Unknown";
homepage = https://openxcom.org;
license = licenses.gpl3;
maintainers = with maintainers; [ cpages ];
platforms = platforms.linux;
repositories.git = https://github.com/SupSuper/OpenXcom.git;
};
};

in {
openxcom = generic "1.0.0-20181008" "13049d617fe762b91893faaf7c14ddefa49e2f1d" "0vpcfk3g1bnwwmrln14jkj2wvw2z8igxw2mdb7c3y66466wm93ig";
openxcom-nightly = generic "1.0.0-20190313" "8a4b13d65522f347c19b8541df924d9845b557f0" "0j13vb1yamfq75mpnfb1hv2h91iz5ijigf4hyx53xq1kapyy8h0v";
}

opentyrian = callPackage ../games/opentyrian { };

openxcom = callPackage ../games/openxcom { };
inherit (callPackages ../games/openxcom {})
openxcom
openxcom-nightly
;

orthorobot = callPackage ../games/orthorobot { };

0 comments on commit 967d985

Please sign in to comment.
You can’t perform that action at this time.