nixpkgs/pkgs/games/chessx/default.nix

37 lines
1,015 B
Nix
Raw Normal View History

2017-06-02 15:40:19 +00:00
{ stdenv, pkgconfig, zlib, qtbase, qtsvg, qttools, qtmultimedia, qmake, fetchurl }:
stdenv.mkDerivation rec {
name = "chessx-${version}";
version = "1.4.6";
src = fetchurl {
url = "mirror://sourceforge/chessx/chessx-${version}.tgz";
sha256 = "1vb838byzmnyglm9mq3khh3kddb9g4g111cybxjzalxxlc81k5dd";
};
buildInputs = [
qtbase
qtsvg
qttools
qtmultimedia
zlib
];
2017-06-02 15:40:19 +00:00
nativeBuildInputs = [ pkgconfig qmake ];
# RCC: Error in 'resources.qrc': Cannot find file 'i18n/chessx_da.qm'
enableParallelBuilding = false;
installPhase = ''
2016-07-27 19:02:45 +00:00
runHook preInstall
mkdir -p "$out/bin"
2016-03-23 19:30:24 +00:00
mkdir -p "$out/share/applications"
cp -pr release/chessx "$out/bin"
2016-03-23 19:30:24 +00:00
cp -pr unix/chessx.desktop "$out/share/applications"
2016-07-27 19:02:45 +00:00
runHook postInstall
'';
meta = with stdenv.lib; {
homepage = http://chessx.sourceforge.net/;
description = "ChessX allows you to browse and analyse chess games";
license = licenses.gpl2;
maintainers = [maintainers.luispedro];
};
}