mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 17:04:42 +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
140 lines
2.5 KiB
Nix
140 lines
2.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
cmake,
|
|
doxygen,
|
|
pkg-config,
|
|
freetype,
|
|
fmt,
|
|
glib,
|
|
harfbuzz,
|
|
liblcf,
|
|
libpng,
|
|
libsndfile,
|
|
libvorbis,
|
|
libxmp,
|
|
libXcursor,
|
|
libXext,
|
|
libXi,
|
|
libXinerama,
|
|
libXrandr,
|
|
libXScrnSaver,
|
|
libXxf86vm,
|
|
mpg123,
|
|
opusfile,
|
|
pcre,
|
|
pixman,
|
|
SDL2,
|
|
speexdsp,
|
|
wildmidi,
|
|
zlib,
|
|
libdecor,
|
|
alsa-lib,
|
|
asciidoctor,
|
|
Foundation,
|
|
AudioUnit,
|
|
AudioToolbox,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "easyrpg-player";
|
|
version = "0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "EasyRPG";
|
|
repo = "Player";
|
|
rev = version;
|
|
hash = "sha256-t0sa9ONVVfsiTy+us06vU2bMa4QmmQeYxU395g0WS6w=";
|
|
};
|
|
|
|
patches = [
|
|
# Fixed compatibility with fmt > 9
|
|
# Remove when version > 0.8
|
|
(fetchpatch {
|
|
name = "0001-Fix-building-with-fmtlib-10.patch";
|
|
url = "https://github.com/EasyRPG/Player/commit/ab6286f6d01bada649ea52d1f0881dde7db7e0cf.patch";
|
|
hash = "sha256-GdSdVFEG1OJCdf2ZIzTP+hSrz+ddhTMBvOPjvYQHy54=";
|
|
})
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
asciidoctor
|
|
cmake
|
|
doxygen
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
fmt
|
|
freetype
|
|
glib
|
|
harfbuzz
|
|
liblcf
|
|
libpng
|
|
libsndfile
|
|
libvorbis
|
|
libxmp
|
|
mpg123
|
|
opusfile
|
|
pcre
|
|
pixman
|
|
SDL2
|
|
speexdsp
|
|
zlib
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
alsa-lib
|
|
libXcursor
|
|
libXext
|
|
libXi
|
|
libXinerama
|
|
libXrandr
|
|
libXScrnSaver
|
|
libXxf86vm
|
|
libdecor
|
|
wildmidi # until packaged on Darwin
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
Foundation
|
|
AudioUnit
|
|
AudioToolbox
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DPLAYER_ENABLE_TESTS=${lib.boolToString doCheck}"
|
|
];
|
|
|
|
makeFlags = [
|
|
"all"
|
|
"man"
|
|
];
|
|
|
|
buildFlags = lib.optionals doCheck [
|
|
"test_runner_player"
|
|
];
|
|
|
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
mkdir $out/bin
|
|
mv Package $out/Applications
|
|
ln -s $out/{Applications/EasyRPG\ Player.app/Contents/MacOS,bin}/EasyRPG\ Player
|
|
'';
|
|
|
|
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
|
|
|
|
enableParallelChecking = true;
|
|
|
|
meta = with lib; {
|
|
description = "RPG Maker 2000/2003 and EasyRPG games interpreter";
|
|
homepage = "https://easyrpg.org/";
|
|
license = licenses.gpl3;
|
|
maintainers = [ ];
|
|
platforms = platforms.all;
|
|
mainProgram = lib.optionalString stdenv.hostPlatform.isDarwin "EasyRPG Player";
|
|
};
|
|
}
|