diff --git a/pkgs/games/libremines/default.nix b/pkgs/games/libremines/default.nix new file mode 100644 index 00000000000..5c949dbbe6a --- /dev/null +++ b/pkgs/games/libremines/default.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, wrapQtAppsHook +, qtmultimedia +, qtwayland +}: + +stdenv.mkDerivation rec { + pname = "libremines"; + version = "1.9.1"; + + src = fetchFromGitHub { + owner = "Bollos00"; + repo = pname; + rev = "v${version}"; + hash = "sha256-CQE7fggRxFI/VatS7NMcIrC78tzqSwkkVC8gK9iKdVY="; + }; + + nativeBuildInputs = [ cmake wrapQtAppsHook ]; + + buildInputs = [ + qtmultimedia + ] ++ lib.optionals stdenv.isLinux [ + qtwayland + ]; + + cmakeFlags = [ "-DUSE_QT6=TRUE" ]; + + meta = with lib; { + description = "Qt based Minesweeper game"; + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c94cc3fe407..00e6c0320bf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22220,6 +22220,8 @@ with pkgs; CoreServices; }; + libremines = qt6.callPackage ../games/libremines { }; + librelp = callPackage ../development/libraries/librelp { }; librepo = callPackage ../tools/package-management/librepo {