Commit 6853f4a2 authored by Sigmanificient's avatar Sigmanificient
Browse files

ballerbug: modernize

parent 4d353eba
Loading
Loading
Loading
Loading
+9 −11
Original line number Diff line number Diff line
@@ -11,20 +11,18 @@
}:

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.3";

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

@@ -41,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" ];
    })
@@ -57,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;
  };
}
})