From 91b80e029543115279e6f8cc8ddac55cac6551b7 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 11 May 2022 22:40:41 +0800 Subject: [PATCH] freerct: init at 0.1 --- pkgs/default.nix | 1 + pkgs/freerct.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/freerct.nix 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; + }; +}