exult: 1.8 -> 1.10.1

This commit is contained in:
Robin Mattheussen 2024-10-13 03:34:46 +02:00
parent 6422c786dd
commit 4f6cd4f94a
No known key found for this signature in database
GPG Key ID: 8DC3890E89EDE9DF
2 changed files with 22 additions and 6 deletions

View File

@ -3,6 +3,8 @@
, fetchFromGitHub , fetchFromGitHub
, SDL2 , SDL2
, autoconf , autoconf
, autoconf-archive
, autoreconfHook
, automake , automake
, libogg , libogg
, libtool , libtool
@ -10,21 +12,31 @@
, pkg-config , pkg-config
, zlib , zlib
, enableTools ? false , enableTools ? false
# Darwin-specific
, AudioUnit
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "exult"; pname = "exult";
version = "1.8"; version = "1.10.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "exult"; owner = "exult";
repo = "exult"; repo = "exult";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-Y7FpgiGuqR4ZG/PNSfLcNcRWeeC7GebUTighXsCfy+E="; hash = "sha256-NlvtYtmJNYhOC1BtIxIij3NEQHWAGOeD4XgRq7evjzE=";
}; };
# We can't use just DESTDIR because with it we'll have /nix/store/...-exult-1.10.1/nix/store/...-exult-1.10.1/bin
postPatch = ''
substituteInPlace macosx/macosx.am \
--replace-fail DESTDIR NIX_DESTDIR
'';
nativeBuildInputs = [ nativeBuildInputs = [
autoconf autoconf
autoconf-archive
autoreconfHook
automake automake
libtool libtool
pkg-config pkg-config
@ -35,12 +47,13 @@ stdenv.mkDerivation rec {
libogg libogg
libvorbis libvorbis
zlib zlib
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
AudioUnit
]; ];
preConfigure = '' enableParallelBuilding = true;
./autogen.sh
'';
makeFlags = [ "NIX_DESTDIR=$(out)" ]; # see postPatch
configureFlags = lib.optional (!enableTools) "--disable-tools"; configureFlags = lib.optional (!enableTools) "--disable-tools";
meta = with lib; { meta = with lib; {
@ -58,5 +71,6 @@ stdenv.mkDerivation rec {
homepage = "http://exult.info"; homepage = "http://exult.info";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ azahi ]; maintainers = with maintainers; [ azahi ];
mainProgram = "exult";
}; };
} }

View File

@ -34694,7 +34694,9 @@ with pkgs;
extremetuxracer = callPackage ../games/extremetuxracer { }; extremetuxracer = callPackage ../games/extremetuxracer { };
exult = callPackage ../games/exult { }; exult = callPackage ../games/exult {
inherit (darwin.apple_sdk.frameworks) AudioUnit;
};
fallout-ce = callPackage ../games/fallout-ce/fallout-ce.nix { }; fallout-ce = callPackage ../games/fallout-ce/fallout-ce.nix { };
fallout2-ce = callPackage ../games/fallout-ce/fallout2-ce.nix { }; fallout2-ce = callPackage ../games/fallout-ce/fallout2-ce.nix { };