From 09f366a360fee8fae4d0e1aa642725738094ea64 Mon Sep 17 00:00:00 2001 From: Nathan Moore Date: Tue, 5 Jul 2016 18:33:51 -0700 Subject: [PATCH] solarus: init at 1.4.5 --- lib/maintainers.nix | 1 + pkgs/games/solarus/default.nix | 32 ++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 35 insertions(+) create mode 100644 pkgs/games/solarus/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 7cdd9f86ec6..ca4dd4f98e8 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -264,6 +264,7 @@ muflax = "Stefan Dorn "; myrl = "Myrl Hex "; nathan-gs = "Nathan Bijnens "; + Nate-Devv = "Nathan Moore "; nckx = "Tobias Geerinckx-Rice "; nequissimus = "Tim Steinbach "; nfjinjing = "Jinjing Wang "; diff --git a/pkgs/games/solarus/default.nix b/pkgs/games/solarus/default.nix new file mode 100644 index 00000000000..32142a2834e --- /dev/null +++ b/pkgs/games/solarus/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, cmake, luajit, + SDL2, SDL2_image, SDL2_ttf, physfs, + openal, libmodplug, libvorbis}: + +stdenv.mkDerivation rec { + name = "solarus-${version}"; + version = "1.4.5"; + + src = fetchFromGitHub { + owner = "christopho"; + repo = "solarus"; + rev = "d9fdb9fdb4e1b9fc384730a9279d134ae9f2c70e"; + sha256 = "0xjx789d6crm322wmkqyq9r288vddsha59yavhy78c4r01gs1p5v"; + }; + + buildInputs = [ cmake luajit SDL2 + SDL2_image SDL2_ttf physfs + openal libmodplug libvorbis ]; + + meta = with stdenv.lib; { + description = "A Zelda-like ARPG game engine"; + longDescription = '' + Solarus is a game engine for Zelda-like ARPG games written in lua. + Many full-fledged games have been writen for the engine. + ''; + homepage = http://www.solarus-games.org; + license = licenses.gpl3; + maintainers = [ maintainers.Nate-Devv ]; + platforms = platforms.linux; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a1aad41374c..c153271422f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15581,6 +15581,8 @@ in soi = callPackage ../games/soi { lua = lua5_1; }; + + solarus = callPackage ../games/solarus { }; # You still can override by passing more arguments. space-orbit = callPackage ../games/space-orbit { };