From d4f643c8458a7a2ae3465a2694114293947ac670 Mon Sep 17 00:00:00 2001 From: Michiel Leenaars Date: Sat, 31 Oct 2015 00:34:20 +0100 Subject: [PATCH 1/2] Armagetronad: init at version 0.2.8.3.3 --- pkgs/games/armagetronad/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/games/armagetronad/default.nix diff --git a/pkgs/games/armagetronad/default.nix b/pkgs/games/armagetronad/default.nix new file mode 100644 index 000000000000..e70d4c7b5965 --- /dev/null +++ b/pkgs/games/armagetronad/default.nix @@ -0,0 +1,26 @@ +{stdenv, fetchurl, SDL, libxml2, SDL_image, libjpeg, mesa, zlib} : + +let + versionMajor = "0.2.8"; + versionMinor = "3.3"; + version = "${versionMajor}.${versionMinor}"; +in + +stdenv.mkDerivation { + name = "armagetron-${version}"; + src = fetchurl { + url = "https://launchpad.net/armagetronad/${versionMajor}/0.2.8.3.x/+download/armagetronad-${version}.src.tar.bz2"; + sha256 = "1s55irhg60fpmhy8wwxpdq7c45r1mqch6zpicyb2wf9ln60xgwnx"; + }; + + NIX_LDFLAGS = "-lSDL_image"; + + configureFlags ="--disable-etc"; + buildInputs = [SDL SDL_image libxml2 libjpeg mesa zlib]; + + meta = { + homepage = http://armagetronad.org; + description = "An multiplayer networked arcade racing game in 3D similar to Tron"; + license = stdenv.lib.licenses.gpl2; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2c4ae620eca9..68d25293f5fe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13711,6 +13711,8 @@ let anki = callPackage ../games/anki { }; + armagetronad = callPackage ../games/armagetronad { }; + asc = callPackage ../games/asc { lua = lua5_1; libsigcxx = libsigcxx12; From cddbb0fa4788d9ea19971cbf78f37937f2471020 Mon Sep 17 00:00:00 2001 From: leenaars Date: Mon, 2 Nov 2015 15:29:16 +0100 Subject: [PATCH 2/2] Added Linux as confirmed platform --- pkgs/games/armagetronad/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/games/armagetronad/default.nix b/pkgs/games/armagetronad/default.nix index e70d4c7b5965..cbbd963f2eeb 100644 --- a/pkgs/games/armagetronad/default.nix +++ b/pkgs/games/armagetronad/default.nix @@ -22,5 +22,6 @@ stdenv.mkDerivation { homepage = http://armagetronad.org; description = "An multiplayer networked arcade racing game in 3D similar to Tron"; license = stdenv.lib.licenses.gpl2; + platforms = platforms.linux; }; }