diff --git a/pkgs/default.nix b/pkgs/default.nix index cc0acc13..032bc44e 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -10,6 +10,7 @@ let blueprint-compiler = callPackage ./blueprint-compiler.nix { }; butler = callPackage ./butler.nix { }; clidle = callPackage ./clidle.nix { }; + freerct = callPackage ./freerct.nix { }; distant = callPackage ./distant.nix { }; devdocs-desktop = callPackage ./devdocs-desktop.nix { }; doggo = callPackage ./doggo.nix { }; diff --git a/pkgs/freerct.nix b/pkgs/freerct.nix new file mode 100644 index 00000000..f15cd13e --- /dev/null +++ b/pkgs/freerct.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitHub, cmake, libpng, SDL2, SDL2_ttf, flex, bison }: + +stdenv.mkDerivation rec { + pname = "freerct"; + version = "0.1"; + + src = fetchFromGitHub { + owner = "FreeRCT"; + repo = "FreeRCT"; + rev = version; + sha256 = "sha256-kftKFB/78LR6aO1ey8G3JQIVfdvp3lS7J9c5gpnw/Os="; + }; + + nativeBuildInputs = [ + cmake + ]; + + buildInputs = [ + libpng + SDL2 + SDL2_ttf + flex + bison + ]; + + meta = with lib; { + homepage = "https://freerct.net/"; + description = "Free and open source game aiming to capture the look and feel of RollerCoaster Tycoon."; + license = licenses.gpl2Only; + }; +}