Commit 0df00113 authored by Guy Chronister's avatar Guy Chronister
Browse files

libremines: migrate to by-name

parent 02839caa
Loading
Loading
Loading
Loading
+13 −14
Original line number Diff line number Diff line
@@ -3,46 +3,45 @@
  stdenv,
  fetchFromGitHub,
  cmake,
  wrapQtAppsHook,
  qtmultimedia,
  qtwayland,
  qt6,
  qt6Packages,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "libremines";
  version = "2.0.1";

  src = fetchFromGitHub {
    owner = "Bollos00";
    repo = pname;
    rev = "v${version}";
    repo = "libremines";
    tag = "v${finalAttrs.version}";
    hash = "sha256-TQwjEgtqAvKnrpia6VloRgFwtq5TNDmxU+ZWjtEK/n8=";
  };

  nativeBuildInputs = [
    cmake
    wrapQtAppsHook
    qt6.wrapQtAppsHook
  ];

  buildInputs =
    [
      qtmultimedia
      qt6Packages.qtmultimedia
    ]
    ++ lib.optionals stdenv.hostPlatform.isLinux [
      qtwayland
      qt6Packages.qtwayland
    ];

  cmakeFlags = [ "-DUSE_QT6=TRUE" ];

  meta = with lib; {
  meta = {
    description = "Qt based Minesweeper game";
    mainProgram = "libremines";
    longDescription = ''
      A Free/Libre and Open Source Software Qt based Minesweeper game available for GNU/Linux, FreeBSD and Windows systems.
    '';
    homepage = "https://bollos00.github.io/LibreMines";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ aleksana ];
    platforms = platforms.unix;
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ aleksana ];
    platforms = lib.platforms.unix;
  };
}
})
+0 −2
Original line number Diff line number Diff line
@@ -8658,8 +8658,6 @@ with pkgs;
    inherit (lomiri) cmake-extras;
  };

  libremines = qt6.callPackage ../games/libremines { };

  librepo = callPackage ../tools/package-management/librepo { };

  libretranslate = with python3.pkgs; toPythonApplication libretranslate;