From 2377a46c8f265b3ac8739aa8b1ba2822373dc3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 29 Aug 2010 09:43:46 +0000 Subject: [PATCH] Adding the game Advanced Strategic Command. I had to add an old version of libsigc++ for it. svn path=/nixpkgs/trunk/; revision=23490 --- pkgs/development/libraries/libsigcxx/1.2.nix | 17 ++++++++++ pkgs/games/asc/default.nix | 34 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 7 ++++ 3 files changed, 58 insertions(+) create mode 100644 pkgs/development/libraries/libsigcxx/1.2.nix create mode 100644 pkgs/games/asc/default.nix diff --git a/pkgs/development/libraries/libsigcxx/1.2.nix b/pkgs/development/libraries/libsigcxx/1.2.nix new file mode 100644 index 000000000000..6436a88bdc81 --- /dev/null +++ b/pkgs/development/libraries/libsigcxx/1.2.nix @@ -0,0 +1,17 @@ +{stdenv, fetchurl, pkgconfig, m4}: + +stdenv.mkDerivation rec { + name = "libsigc++-1.2.7"; + + src = fetchurl { + url = "http://ftp.gnome.org/pub/GNOME/sources/libsigc++/1.2/${name}.tar.bz2"; + sha256 = "099224v5y0y1ggqrfc8vga8afr3nb93iicn7cj8xxgsrwa83s5nr"; + }; + + buildInputs = [pkgconfig m4]; + + meta = { + homepage = http://libsigc.sourceforge.net/; + description = "A typesafe callback system for standard C++"; + }; +} diff --git a/pkgs/games/asc/default.nix b/pkgs/games/asc/default.nix new file mode 100644 index 000000000000..86cf929aede7 --- /dev/null +++ b/pkgs/games/asc/default.nix @@ -0,0 +1,34 @@ +{ fetchurl, stdenv, SDL, SDL_image, SDL_mixer, SDL_sound, libsigcxx, physfs +, boost, expat, freetype, libjpeg, wxGTK, lua, perl, pkgconfig, zlib, zip, bzip2, +libpng }: + +stdenv.mkDerivation rec { + name = "asc-2.4.0.0"; + + src = fetchurl { + url = "mirror://sourceforge/asc-hq/${name}.tar.bz2"; + sha256 = "1r011l4gsliky6szjvda8xzyhkkc50ahrr7p14911v5ydar0w3hh"; + }; + + buildInputs = [ + SDL SDL_image SDL_mixer SDL_sound libsigcxx physfs boost expat freetype + libjpeg wxGTK lua perl pkgconfig zlib zip bzip2 libpng + ]; + + meta = { + description = "Turn based strategy game"; + + longDescription = '' + Advanced Strategic Command is a free, turn based strategy game. It is + designed in the tradition of the Battle Isle series from Bluebyte and is + currently available for Windows and Linux. + ''; + + homepage = http://www.asc-hq.org/; + + license = "GPLv2+"; + + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3c74aaee2a36..7a4996dca8d0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3337,6 +3337,8 @@ let libsigcxx = callPackage ../development/libraries/libsigcxx { }; + libsigcxx12 = callPackage ../development/libraries/libsigcxx/1.2.nix { }; + libsigsegv = callPackage ../development/libraries/libsigsegv { }; # To bootstrap SBCL, I need CLisp 2.44.1; it needs libsigsegv 2.5 @@ -6400,6 +6402,11 @@ let ### GAMES + asc = callPackage ../games/asc { + lua = lua5; + libsigcxx = libsigcxx12; + }; + ballAndPaddle = callPackage ../games/ball-and-paddle { }; blackshades = callPackage ../games/blackshades { };