[Nix-dev] Subject: [PATCH] Add a derivation for bzflag 2.4
Peter Eriksen
peter at eriksen.ch
Sat Dec 22 23:47:48 CET 2012
It's based on the derivation for bzflag 2.0 (games/bzflag) with
the following changes:
1) The license is changed to LGPLv2.1
I haven't been able to find any "or later" clause in the source,
or on the website.
2) The dependency on ncurses is removed.
---
pkgs/games/bzflag24/default.nix | 18 ++++++++++++++++++
pkgs/top-level/all-packages.nix | 2 ++
2 files changed, 20 insertions(+)
create mode 100644 pkgs/games/bzflag24/default.nix
diff --git a/pkgs/games/bzflag24/default.nix
b/pkgs/games/bzflag24/default.nix
new file mode 100644
index 0000000..18ab23e
--- /dev/null
+++ b/pkgs/games/bzflag24/default.nix
@@ -0,0 +1,18 @@
+{ fetchurl, stdenv, curl, SDL, mesa, glew }:
+
+stdenv.mkDerivation {
+ name = "bzflag-2.4.2";
+
+ src = fetchurl {
+ url = mirror://sourceforge/bzflag/bzflag-2.4.2.tar.bz2;
+ sha256 =
"4f7bc52284cc4b39fc352855e555b2b064c1de6a18f7474e249073070762c811";
+ };
+
+ buildInputs = [ curl SDL mesa glew ];
+
+ meta = {
+ description = "Multiplayer 3D Tank game";
+ homepage = http://bzflag.org/;
+ license = "LGPLv2.1";
+ };
+}
diff --git a/pkgs/top-level/all-packages.nix
b/pkgs/top-level/all-packages.nix
index e9e11d2..416a995 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -8144,6 +8144,8 @@ let
bzflag = callPackage ../games/bzflag { };
+ bzflag24 = callPackage ../games/bzflag24 { };
+
castle_combat = callPackage ../games/castle-combat { };
construoBase = lowPrio (callPackage ../games/construo {
--
1.8.0.1
More information about the nix-dev
mailing list