mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
80 lines
1.9 KiB
Nix
80 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
SDL2,
|
|
autoconf,
|
|
autoconf-archive,
|
|
autoreconfHook,
|
|
automake,
|
|
libogg,
|
|
libtool,
|
|
libvorbis,
|
|
pkg-config,
|
|
zlib,
|
|
enableTools ? false,
|
|
# Darwin-specific
|
|
AudioUnit,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "exult";
|
|
version = "1.10.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "exult";
|
|
repo = "exult";
|
|
rev = "v${version}";
|
|
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
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
SDL2
|
|
libogg
|
|
libvorbis
|
|
zlib
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
AudioUnit
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
makeFlags = [ "NIX_DESTDIR=$(out)" ]; # see postPatch
|
|
configureFlags = lib.optional (!enableTools) "--disable-tools";
|
|
|
|
meta = with lib; {
|
|
description = "Exult is a project to recreate Ultima VII for modern operating systems";
|
|
longDescription = ''
|
|
Ultima VII, an RPG from the early 1990's, still has a huge following. But,
|
|
being a DOS game with a very nonstandard memory manager, it is difficult
|
|
to run it on the latest computers. Exult is a project that created an
|
|
Ultima VII game engine that runs on modern operating systems, capable of
|
|
using the data and graphics files that come with the game. Exult aims to
|
|
let those people who own Ultima VII play the game on modern hardware, in
|
|
as close to (or perhaps even surpassing) its original splendor as is
|
|
possible.
|
|
'';
|
|
homepage = "http://exult.info";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ azahi ];
|
|
mainProgram = "exult";
|
|
};
|
|
}
|