From e0b04b4c37cbdad66491f5ac018166a6d1e100e2 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Tue, 28 Feb 2017 15:59:14 +0100 Subject: [PATCH] bzflag: 2.4.2 -> 2.4.8 --- pkgs/games/bzflag/default.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pkgs/games/bzflag/default.nix b/pkgs/games/bzflag/default.nix index 7015bf557613..d3792843d47c 100644 --- a/pkgs/games/bzflag/default.nix +++ b/pkgs/games/bzflag/default.nix @@ -1,19 +1,24 @@ -{ fetchurl, stdenv, curl, SDL, mesa, glew, ncurses }: +{ stdenv, lib, fetchurl, pkgconfig +, curl, SDL2, mesa, glew, ncurses, c-ares }: stdenv.mkDerivation rec { - name = "bzflag-2.4.2"; + name = "${pname}-${version}"; + pname = "bzflag"; + version = "2.4.8"; src = fetchurl { - url = mirror://sourceforge/bzflag/bzflag-2.4.2.tar.bz2; - sha256 = "04f8c83hfwwh4i74gxqqdbgc2r5hn9ayam986py3jjychhicaysg"; + url = "https://download.bzflag.org/${pname}/source/${version}/${name}.tar.bz2"; + sha256 = "08iiw0i0vx68d73hliiylswsm0nvnm849k37xc7iii6sflblvjj3"; }; - buildInputs = [ curl SDL mesa glew ncurses ]; + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ curl SDL2 mesa glew ncurses c-ares ]; - meta = { + meta = with lib; { description = "Multiplayer 3D Tank game"; homepage = http://bzflag.org/; - license = stdenv.lib.licenses.lgpl21Plus; - platforms = stdenv.lib.platforms.linux; + license = licenses.lgpl21Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ fpletz ]; }; }