ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
42 lines
941 B
Nix
42 lines
941 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, wrapQtAppsHook
|
|
, qtmultimedia
|
|
, qtwayland
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libremines";
|
|
version = "2.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Bollos00";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-LejDXjli+AEVGp23y+ez/NyJY/8w7uHcOij6RsDwIH4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
|
|
|
buildInputs = [
|
|
qtmultimedia
|
|
] ++ lib.optionals stdenv.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;
|
|
};
|
|
}
|