Skip to content

Commit

Permalink
ja2-stracciatella: format with nixfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaSajt committed Nov 6, 2024
1 parent 0fc421d commit 5da0d1e
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions pkgs/games/ja2-stracciatella/default.nix
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5da0d1e

Please sign in to comment.