From mboxrd@z Thu Jan 1 00:00:00 1970 From: "ng0" Subject: Re: [PATCH] gnu: Add freeciv. Date: Wed, 01 Feb 2017 16:45:24 +0000 Message-ID: <8737fxeu6z.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> References: <20170201141940.2322-1-arunisaac@systemreboot.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYy13-0002oZ-Ip for guix-devel@gnu.org; Wed, 01 Feb 2017 11:44:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYy0z-0007aw-M6 for guix-devel@gnu.org; Wed, 01 Feb 2017 11:44:17 -0500 Received: from fragranza.investici.org ([2a00:1dc0:2479::19]:55916) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cYy0z-0007ah-A5 for guix-devel@gnu.org; Wed, 01 Feb 2017 11:44:13 -0500 In-reply-to: <20170201141940.2322-1-arunisaac@systemreboot.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Arun Isaac Cc: guix-devel@gnu.org Arun Isaac writes: > * gnu/packages/games.scm (freeciv): New variable. Nice :) > --- > gnu/packages/games.scm | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm > index 0edd585fa..81588aabb 100644 > --- a/gnu/packages/games.scm > +++ b/gnu/packages/games.scm > @@ -104,6 +104,7 @@ > #:use-module (gnu packages xdisorg) > #:use-module (gnu packages tls) > #:use-module (gnu packages pcre) > + #:use-module (gnu packages cyrus-sasl) > #:use-module (guix build-system gnu) > #:use-module (guix build-system haskell) > #:use-module (guix build-system python) > @@ -3071,3 +3072,33 @@ symbols, the game needs graphics to render the non-euclidean world.") > for Un*x systems with X11.") > (home-page "http://olofson.net/kobodl/") > (license license:gpl2+))) > + > +(define-public freeciv > + (package > + (name "freeciv") > + (version "2.5.6") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "http://download.gna.org/freeciv/stable/freeciv-" > + version ".tar.bz2")) I'd write it like this: (uri (string-append "http://download.gna.org/freeciv/" "stable/freeciv-" version ".tar.bz2")) but that's just cosmetic. > + (sha256 > + (base32 > + "16wrnsx5rmbz6rjs03bhy0vn20i6n6g73lx7fjpai98ixhzc5bfg")))) > + (build-system gnu-build-system) > + (inputs > + `(("curl" ,curl) > + ("cyrus-sasl" ,cyrus-sasl) > + ("gtk+" ,gtk+) > + ("sdl-mixer" ,sdl-mixer) > + ("zlib" ,zlib))) > + (native-inputs > + `(("pkg-config" ,pkg-config))) > + (home-page "http://www.freeciv.org/") > + (synopsis "Turn based empire building strategy game") > + (description "Freeciv is a turn based empire building strategy game > +inspired by the history of human civilization. The game commences in > +prehistory and your mission is to lead your tribe from the Stone Age > +to the Space Age.") > + (license license:gpl2+))) The rest looks good to me. I don't really played very long, but the game doesn't segfault, so I suppose it works as intended. -- ng0 . https://www.inventati.org/patternsinthechaos/