depot/third_party/nixpkgs/pkgs/games/libremines/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

41 lines
910 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, wrapQtAppsHook
, qtmultimedia
, qtwayland
}:
stdenv.mkDerivation rec {
pname = "libremines";
version = "1.10.0";
src = fetchFromGitHub {
owner = "Bollos00";
repo = pname;
rev = "v${version}";
hash = "sha256-aqWzTvvRoke+Rakb6dNpDoD7haKHEKW3XARGLrH2WiY=";
};
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;
};
}