From e53ffbdbeeab863c4893ca50d620961ddcc37074 Mon Sep 17 00:00:00 2001 From: Jakub Pawlowicz Date: Thu, 29 Dec 2022 12:19:09 +0100 Subject: [PATCH 1/2] openxcom: 1.0.0.2019.10.18 -> 1.0.0.2023.08.12 Updates openxcom to the latest version available. --- pkgs/games/openxcom/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/games/openxcom/default.nix b/pkgs/games/openxcom/default.nix index ce9d098082d5..5aafbb957bb3 100644 --- a/pkgs/games/openxcom/default.nix +++ b/pkgs/games/openxcom/default.nix @@ -17,13 +17,13 @@ stdenv.mkDerivation rec { pname = "openxcom"; - version = "1.0.0.2019.10.18"; + version = "1.0.0.2023.08.12"; src = fetchFromGitHub { owner = "OpenXcom"; repo = "OpenXcom"; - rev = "f9853b2cb8c8f741ac58707487ef493416d890a3"; - hash = "sha256-APv49ZT94oeM4KVKGtUdoQ1t8Ly8lsocr+FqXiRXbk0="; + rev = "bd632cc8569a57fdc3b68ce53f6ea850422ec5ac"; + hash = "sha256-ouYZ4rAEluqeP+ZUrbEZwCpXCw0cZLWsf1GbIE3jaTc="; }; nativeBuildInputs = [ cmake pkg-config ]; From b120b9740517b72a5b81c1db2bf1585985637787 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 15 Aug 2023 21:52:21 +0200 Subject: [PATCH 2/2] openxcom: minor cleanup - sort lambda parameters - remove obsolete `rec` - sort `buildInputs` - remove meta `with lib;` --- pkgs/games/openxcom/default.nix | 42 ++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/pkgs/games/openxcom/default.nix b/pkgs/games/openxcom/default.nix index 5aafbb957bb3..c09bd5c28f2f 100644 --- a/pkgs/games/openxcom/default.nix +++ b/pkgs/games/openxcom/default.nix @@ -1,21 +1,21 @@ -{ lib -, stdenv -, fetchFromGitHub +{ boost , cmake -, pkg-config +, fetchFromGitHub +, lib , libGLU , libGL -, zlib , openssl -, yaml-cpp -, boost +, pkg-config , SDL , SDL_image , SDL_mixer , SDL_gfx +, stdenv +, yaml-cpp +, zlib }: -stdenv.mkDerivation rec { +stdenv.mkDerivation { pname = "openxcom"; version = "1.0.0.2023.08.12"; @@ -26,15 +26,29 @@ stdenv.mkDerivation rec { hash = "sha256-ouYZ4rAEluqeP+ZUrbEZwCpXCw0cZLWsf1GbIE3jaTc="; }; - nativeBuildInputs = [ cmake pkg-config ]; + nativeBuildInputs = [ + cmake + pkg-config + ]; - buildInputs = [ SDL SDL_gfx SDL_image SDL_mixer boost yaml-cpp libGLU libGL openssl zlib ]; + buildInputs = [ + boost + libGL + libGLU + SDL + SDL_gfx + SDL_image + SDL_mixer + yaml-cpp + openssl + zlib + ]; - meta = with lib; { + meta = { description = "Open source clone of UFO: Enemy Unknown"; homepage = "https://openxcom.org"; - maintainers = with maintainers; [ cpages ]; - platforms = platforms.linux; - license = licenses.gpl3; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ cpages ]; + platforms = lib.platforms.linux; }; }