depot/pkgs/games/libremines/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

42 lines
954 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, wrapQtAppsHook
, qtmultimedia
, qtwayland
}:
stdenv.mkDerivation rec {
pname = "libremines";
version = "2.0.1";
src = fetchFromGitHub {
owner = "Bollos00";
repo = pname;
rev = "v${version}";
hash = "sha256-TQwjEgtqAvKnrpia6VloRgFwtq5TNDmxU+ZWjtEK/n8=";
};
nativeBuildInputs = [ cmake wrapQtAppsHook ];
buildInputs = [
qtmultimedia
] ++ lib.optionals stdenv.hostPlatform.isLinux [
qtwayland
];
cmakeFlags = [ "-DUSE_QT6=TRUE" ];
meta = with lib; {
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;
};
}