From e9c35e9381ebb915d442fa3a8a0ee3cf040eabbb Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 2 Dec 2012 00:18:42 +0400 Subject: [PATCH] Add Pingus --- pkgs/games/pingus/default.nix | 29 +++++++++++++++++++++++++++++ pkgs/games/pingus/default.upstream | 1 + pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 32 insertions(+) create mode 100644 pkgs/games/pingus/default.nix create mode 100644 pkgs/games/pingus/default.upstream diff --git a/pkgs/games/pingus/default.nix b/pkgs/games/pingus/default.nix new file mode 100644 index 000000000000..43cdc2031bf5 --- /dev/null +++ b/pkgs/games/pingus/default.nix @@ -0,0 +1,29 @@ +{stdenv, fetchurl, scons, SDL, SDL_image, boost, libpng, SDL_mixer, pkgconfig +, mesa}: +let + buildInputs = [scons SDL SDL_image boost libpng SDL_mixer pkgconfig mesa]; + s = # Generated upstream information + rec { + baseName="pingus"; + version="0.7.6"; + name="pingus-0.7.6"; + hash="0q34d2k6anzqvb0mf67x85q92lfx9jr71ry13dlp47jx0x9i573m"; + url="http://pingus.googlecode.com/files/pingus-0.7.6.tar.bz2"; + sha256="0q34d2k6anzqvb0mf67x85q92lfx9jr71ry13dlp47jx0x9i573m"; + }; +in +stdenv.mkDerivation rec { + inherit (s) name version; + inherit buildInputs; + src = fetchurl { + inherit (s) url sha256; + }; + makeFlags = '' PREFIX="$(out)" ''; + meta = { + inherit (s) version; + description = ''A puzzle game with mechanics similar to Lemmings''; + platforms = stdenv.lib.platforms.linux; + maintainers = [stdenv.lib.maintainers.raskin]; + license = stdenv.lib.licenses.gpl3; + }; +} diff --git a/pkgs/games/pingus/default.upstream b/pkgs/games/pingus/default.upstream new file mode 100644 index 000000000000..6b4eb31aa5f6 --- /dev/null +++ b/pkgs/games/pingus/default.upstream @@ -0,0 +1 @@ +url http://pingus.seul.org/download.html diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6b268b7a7f78..c60e814234bf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8163,6 +8163,8 @@ let opentyrian = callPackage ../games/opentyrian { }; + pingus = callPackage ../games/pingus {}; + pioneers = callPackage ../games/pioneers { }; pong3d = callPackage ../games/pong3d { };