mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
exult: 1.8 -> 1.10.1 (#347623)
Co-authored-by: Kamillaova <me@kamillaova.dev>
This commit is contained in:
commit
039fa645b6
|
@ -3,6 +3,8 @@
|
|||
, fetchFromGitHub
|
||||
, SDL2
|
||||
, autoconf
|
||||
, autoconf-archive
|
||||
, autoreconfHook
|
||||
, automake
|
||||
, libogg
|
||||
, libtool
|
||||
|
@ -10,21 +12,31 @@
|
|||
, pkg-config
|
||||
, zlib
|
||||
, enableTools ? false
|
||||
# Darwin-specific
|
||||
, AudioUnit
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "exult";
|
||||
version = "1.8";
|
||||
version = "1.10.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "exult";
|
||||
repo = "exult";
|
||||
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 = [
|
||||
autoconf
|
||||
autoconf-archive
|
||||
autoreconfHook
|
||||
automake
|
||||
libtool
|
||||
pkg-config
|
||||
|
@ -35,12 +47,13 @@ stdenv.mkDerivation rec {
|
|||
libogg
|
||||
libvorbis
|
||||
zlib
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
AudioUnit
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
./autogen.sh
|
||||
'';
|
||||
enableParallelBuilding = true;
|
||||
|
||||
makeFlags = [ "NIX_DESTDIR=$(out)" ]; # see postPatch
|
||||
configureFlags = lib.optional (!enableTools) "--disable-tools";
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -58,5 +71,6 @@ stdenv.mkDerivation rec {
|
|||
homepage = "http://exult.info";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ azahi ];
|
||||
mainProgram = "exult";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -34617,7 +34617,9 @@ with pkgs;
|
|||
|
||||
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 { };
|
||||
fallout2-ce = callPackage ../games/fallout-ce/fallout2-ce.nix { };
|
||||
|
|
Loading…
Reference in a new issue