Unverified Commit a61756fe authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

ballerbug: 1.2.0 -> 1.2.3 (#451481)

parents 9d55bbd7 6853f4a2
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchurl,
  fetchgit,
  cmake,
  SDL,
  makeDesktopItem,
@@ -10,20 +11,19 @@
}:

let

  icon = fetchurl {
    url = "https://baller.tuxfamily.org/king.png";
    sha256 = "1xq2h87s648wjpjl72ds3xnnk2jp8ghbkhjzh2g4hpkq2zdz90hy";
    hash = "sha256-HoL02xd4XkiegF/CueBDV4ppbR+6iUPllRwRow+CAvc=";
  };

in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "ballerburg";
  version = "1.2.0";
  version = "1.2.3";

  src = fetchurl {
    url = "https://download.tuxfamily.org/baller/ballerburg-${version}.tar.gz";
    sha256 = "sha256-BiX0shPBGA8sshee8rxs41x+mdsrJzBqhpDDic6sYwA=";
  src = fetchgit {
    url = "https://framagit.org/baller/ballerburg.git";
    tag = "v${finalAttrs.version}";
    hash = "sha256-4rO7ixLE+EV6zd0EryHU6QZeVoa6N4fvxwoJWa0aO70=";
  };

  nativeBuildInputs = [
@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
      name = "Ballerburg";
      desktopName = "Ballerburg SDL";
      exec = "_NET_WM_ICON=ballerburg ballerburg";
      comment = meta.description;
      comment = finalAttrs.meta.description;
      icon = "ballerburg";
      categories = [ "Game" ];
    })
@@ -55,15 +55,15 @@ stdenv.mkDerivation rec {
    done
  '';

  meta = with lib; {
  meta = {
    description = "Classic cannon combat game";
    mainProgram = "ballerburg";
    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;
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ j0hax ];
    platforms = lib.platforms.all;
  };
}
})