nixpkgs/pkgs/games/frogatto/engine.nix
Julius Michaelis e0547a611e frogatto/anura-engine: fix build
The build failed with
```console
Building: src/filesystem.cpp
src/filesystem.cpp: In function 'void sys::copy_file(const std::string&, const std::string&)':
src/filesystem.cpp:221:26: error: 'bool boost::filesystem::copy_file(const path&, const path&, copy_option)' is deprecated: Use copy_options instead of copy_option [-Werror=deprecated-declarations]
  221 |                 copy_file(path(from), path(to), copy_option::fail_if_exists);
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/boost/filesystem.hpp:19,
                 from src/filesystem.cpp:47:
include/boost/filesystem/operations.hpp:423:13: note: declared here
```
2024-06-09 12:47:58 +09:00

53 lines
1.1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, which
, boost, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf
, glew, zlib, icu, pkg-config, cairo, libvpx, glm
}:
stdenv.mkDerivation {
pname = "anura-engine";
version = "unstable-2023-02-27";
src = fetchFromGitHub {
owner = "anura-engine";
repo = "anura";
rev = "65d85b6646099db1d5cd25d31321bb434a3f94f1";
sha256 = "sha256-hb4Sn7uI+eXLaGb4zkEy4w+ByQJ6FqkoMUYFsyiFCeE=";
fetchSubmodules = true;
};
nativeBuildInputs = [
which pkg-config
];
buildInputs = [
boost
SDL2
SDL2_image
SDL2_mixer
SDL2_ttf
glew
zlib
icu
cairo
libvpx
glm
];
env.CXXFLAGS = "-DGLM_ENABLE_EXPERIMENTAL -Wno-error=deprecated-declarations";
enableParallelBuilding = true;
installPhase = ''
mkdir -p $out/bin $out/share/frogatto
cp -ar data images modules $out/share/frogatto/
cp -a anura $out/bin/frogatto
'';
meta = with lib; {
homepage = "https://github.com/anura-engine/anura";
description = "Game engine used by Frogatto";
license = licenses.zlib;
platforms = platforms.linux;
maintainers = with maintainers; [ astro ];
};
}