Unverified Commit 58bdd012 authored by Rafael Ieda's avatar Rafael Ieda
Browse files

cutemaze: move to by-name, modernize

parent 4c9f9968
Loading
Loading
Loading
Loading
+14 −18
Original line number Diff line number Diff line
@@ -3,34 +3,30 @@
  stdenv,
  fetchurl,
  cmake,
  qttools,
  wrapQtAppsHook,
  qtbase,
  qtwayland,
  qtsvg,
  qt6,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "cutemaze";
  version = "1.3.5";

  src = fetchurl {
    url = "https://gottcode.org/cutemaze/cutemaze-${version}.tar.bz2";
    url = "https://gottcode.org/cutemaze/cutemaze-${finalAttrs.version}.tar.bz2";
    hash = "sha256-a+QIOD0TB0AGnqIUgtkMBZuPUCQbXp4NtZ6b0vk/J0c=";
  };

  nativeBuildInputs = [
    cmake
    qttools
    wrapQtAppsHook
    qt6.qttools
    qt6.wrapQtAppsHook
  ];

  buildInputs = [
    qtbase
    qtsvg
    qt6.qtbase
    qt6.qtsvg
  ]
  ++ lib.optionals stdenv.hostPlatform.isLinux [
    qtwayland
    qt6.qtwayland
  ];

  installPhase =
@@ -47,13 +43,13 @@ stdenv.mkDerivation rec {
    else
      null;

  meta = with lib; {
    changelog = "https://github.com/gottcode/cutemaze/blob/v${version}/ChangeLog";
  meta = {
    changelog = "https://github.com/gottcode/cutemaze/blob/v${finalAttrs.version}/ChangeLog";
    description = "Simple, top-down game in which mazes are randomly generated";
    mainProgram = "cutemaze";
    homepage = "https://gottcode.org/cutemaze/";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ dotlambda ];
    platforms = platforms.unix;
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ dotlambda ];
    platforms = lib.platforms.unix;
  };
}
})
+0 −2
Original line number Diff line number Diff line
@@ -13366,8 +13366,6 @@ with pkgs;
  curseofwar = callPackage ../games/curseofwar { SDL = null; };
  curseofwar-sdl = callPackage ../games/curseofwar { ncurses = null; };

  cutemaze = qt6Packages.callPackage ../games/cutemaze { };

  ddnet-server = ddnet.override { buildClient = false; };

  duckmarines = callPackage ../games/duckmarines { love = love_0_10; };