From ba2cb8365cd0a5489401da9af38e7dc21c7f4b6b Mon Sep 17 00:00:00 2001 From: Johannes Arnold Date: Sat, 7 Aug 2021 11:43:20 +0200 Subject: [PATCH] ballerburg: init at 1.2.0 (#132824) Co-authored-by: Sandro --- pkgs/games/ballerburg/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/games/ballerburg/default.nix diff --git a/pkgs/games/ballerburg/default.nix b/pkgs/games/ballerburg/default.nix new file mode 100644 index 00000000000..ceb95059ede --- /dev/null +++ b/pkgs/games/ballerburg/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchurl, cmake, SDL }: + +stdenv.mkDerivation rec { + pname = "ballerburg"; + version = "1.2.0"; + + src = fetchurl { + url = "https://download.tuxfamily.org/baller/ballerburg-${version}.tar.gz"; + sha256 = "sha256-BiX0shPBGA8sshee8rxs41x+mdsrJzBqhpDDic6sYwA="; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ SDL ]; + + meta = with lib; { + description = "Classic cannon combat game"; + longDescription = '' + Two castles, separated by a mountain, try to defeat each other with their cannonballs, + either by killing the opponent's king or by weakening the opponent enough so that the king capitulates.''; + homepage = "https://baller.tuxfamily.org/"; + license = licenses.gpl3Plus; + maintainers = [ maintainers.j0hax ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c3d816c2a18..6615ce9453d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23379,6 +23379,8 @@ in backintime = backintime-qt; + ballerburg = callPackage ../games/ballerburg { } ; + balsa = callPackage ../applications/networking/mailreaders/balsa { }; bandwidth = callPackage ../tools/misc/bandwidth { };