nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 68 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 which, 6 boost, 7 SDL2, 8 SDL2_image, 9 SDL2_mixer, 10 SDL2_ttf, 11 glew, 12 zlib, 13 icu, 14 pkg-config, 15 cairo, 16 libvpx, 17 glm, 18}: 19 20stdenv.mkDerivation { 21 pname = "anura-engine"; 22 version = "unstable-2023-02-27"; 23 24 src = fetchFromGitHub { 25 owner = "anura-engine"; 26 repo = "anura"; 27 rev = "65d85b6646099db1d5cd25d31321bb434a3f94f1"; 28 sha256 = "sha256-hb4Sn7uI+eXLaGb4zkEy4w+ByQJ6FqkoMUYFsyiFCeE="; 29 fetchSubmodules = true; 30 }; 31 32 nativeBuildInputs = [ 33 which 34 pkg-config 35 ]; 36 37 buildInputs = [ 38 boost 39 SDL2 40 SDL2_image 41 SDL2_mixer 42 SDL2_ttf 43 glew 44 zlib 45 icu 46 cairo 47 libvpx 48 glm 49 ]; 50 51 env.CXXFLAGS = "-DGLM_ENABLE_EXPERIMENTAL -Wno-error=deprecated-declarations"; 52 53 enableParallelBuilding = true; 54 55 installPhase = '' 56 mkdir -p $out/bin $out/share/frogatto 57 cp -ar data images modules $out/share/frogatto/ 58 cp -a anura $out/bin/frogatto 59 ''; 60 61 meta = { 62 homepage = "https://github.com/anura-engine/anura"; 63 description = "Game engine used by Frogatto"; 64 license = lib.licenses.zlib; 65 platforms = lib.platforms.linux; 66 maintainers = with lib.maintainers; [ astro ]; 67 }; 68}