2020-04-24 23:36:52 +00:00
|
|
|
{ mkDerivation
|
2021-02-05 17:12:51 +00:00
|
|
|
, lib
|
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, zlib
|
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
|
|
|
, qttools
|
|
|
|
, qtmultimedia
|
|
|
|
, qmake
|
|
|
|
, fetchurl
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "chessx";
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "1.5.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/chessx/chessx-${version}.tgz";
|
2021-05-28 09:39:13 +00:00
|
|
|
sha256 = "sha256-0JpLU0qQnF8aOYxkBlBJov3zBJe8gcy98NlAQSNk0gU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
qmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
qtsvg
|
|
|
|
qttools
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
# RCC: Error in 'resources.qrc': Cannot find file 'i18n/chessx_da.qm'
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
mkdir -p "$out/share/applications"
|
|
|
|
cp -pr release/chessx "$out/bin"
|
|
|
|
cp -pr unix/chessx.desktop "$out/share/applications"
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://chessx.sourceforge.net/";
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "Browse and analyse chess games";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.luispedro ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|