mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
exult: 1.8 -> 1.10.1
This commit is contained in:
parent
6422c786dd
commit
4f6cd4f94a
@ -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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -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 { };
|
||||||
|
Loading…
Reference in New Issue
Block a user