nixpkgs-suyu/pkgs/games/libremines/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
910 B
Nix
Raw Normal View History

2023-06-08 08:36:20 +02:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, wrapQtAppsHook
, qtmultimedia
, qtwayland
}:
stdenv.mkDerivation rec {
pname = "libremines";
2023-06-11 09:58:30 +02:00
version = "1.10.0";
2023-06-08 08:36:20 +02:00
src = fetchFromGitHub {
owner = "Bollos00";
repo = pname;
rev = "v${version}";
2023-06-11 09:58:30 +02:00
hash = "sha256-aqWzTvvRoke+Rakb6dNpDoD7haKHEKW3XARGLrH2WiY=";
2023-06-08 08:36:20 +02:00
};
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;
};
}