diff --git a/pkgs/games/ja2-stracciatella/default.nix b/pkgs/games/ja2-stracciatella/default.nix index 6b89a806e26b4..0c73f09c5413c 100644 --- a/pkgs/games/ja2-stracciatella/default.nix +++ b/pkgs/games/ja2-stracciatella/default.nix @@ -1,4 +1,19 @@ -{ stdenv, lib, fetchurl, fetchFromGitHub, cmake, python3, rustPlatform, SDL2, fltk, rapidjson, gtest, Carbon, Cocoa }: +{ + stdenv, + lib, + fetchurl, + fetchFromGitHub, + cmake, + python3, + rustPlatform, + SDL2, + fltk, + rapidjson, + gtest, + Carbon, + Cocoa, +}: + let version = "0.17.0"; src = fetchFromGitHub { @@ -28,8 +43,22 @@ stdenv.mkDerivation { pname = "ja2-stracciatella"; inherit src version; - nativeBuildInputs = [ cmake python3 ]; - buildInputs = [ SDL2 fltk rapidjson gtest ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Carbon Cocoa ]; + nativeBuildInputs = [ + cmake + python3 + ]; + + buildInputs = + [ + SDL2 + fltk + rapidjson + gtest + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + Carbon + Cocoa + ]; patches = [ ./remove-rust-buildstep.patch