Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
pkg-config,
|
|
zlib,
|
|
fetchurl,
|
|
libsForQt5,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "chessx";
|
|
version = "1.6.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/chessx/chessx-${finalAttrs.version}.tgz";
|
|
hash = "sha256-uwkdhJywLWMJl4/ihMnxqFwnTzUSL+kca5wwiabiD4A=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
]
|
|
++ (with libsForQt5; [
|
|
qmake
|
|
wrapQtAppsHook
|
|
]);
|
|
|
|
buildInputs = [
|
|
zlib
|
|
]
|
|
++ (with libsForQt5; [
|
|
qtbase
|
|
qtmultimedia
|
|
qtsvg
|
|
qttools
|
|
]);
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# Fails to start on Native Wayland.
|
|
# See https://sourceforge.net/p/chessx/bugs/299/
|
|
qtWrapperArgs = [
|
|
"--set"
|
|
"QT_QPA_PLATFORM"
|
|
"xcb"
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm555 release/chessx -t "$out/bin"
|
|
install -Dm444 unix/chessx.desktop -t "$out/share/applications"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://chessx.sourceforge.io/";
|
|
description = "Browse and analyse chess games";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ luispedro ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "chessx";
|
|
};
|
|
})
|