git.iko.soy/typeable/nixpkgs
on master help sign in
chessx: fix build (#46359)
37032dbMaximilian Bosch
pkgs/games/chessx/default.nix+25−13
@@ -1,30 +1,41 @@
1−{ stdenv, pkgconfig, zlib, qtbase, qtsvg, qttools, qtmultimedia, qmake, fetchurl }:
1+{ stdenv, pkgconfig, zlib, qtbase, qtsvg, qttools, qtmultimedia, qmake, fetchurl, makeWrapper
2+, lib
3+}:
4+
2stdenv.mkDerivation rec {
5stdenv.mkDerivation rec {
3 name = "chessx-${version}";
6 name = "chessx-${version}";
4 version = "1.4.6";
7 version = "1.4.6";
8+
5 src = fetchurl {
9 src = fetchurl {
6 url = "mirror://sourceforge/chessx/chessx-${version}.tgz";
10 url = "mirror://sourceforge/chessx/chessx-${version}.tgz";
7 sha256 = "1vb838byzmnyglm9mq3khh3kddb9g4g111cybxjzalxxlc81k5dd";
11 sha256 = "1vb838byzmnyglm9mq3khh3kddb9g4g111cybxjzalxxlc81k5dd";
8 };
12 };
13+
9 buildInputs = [
14 buildInputs = [
10− qtbase
15+ qtbase
11− qtsvg
16+ qtsvg
12− qttools
17+ qttools
13− qtmultimedia
18+ qtmultimedia
14− zlib
19+ zlib
15 ];
20 ];
21+
16− nativeBuildInputs = [ pkgconfig qmake ];
22+ nativeBuildInputs = [ pkgconfig qmake makeWrapper ];
17
23
18 # RCC: Error in 'resources.qrc': Cannot find file 'i18n/chessx_da.qm'
24 # RCC: Error in 'resources.qrc': Cannot find file 'i18n/chessx_da.qm'
19 enableParallelBuilding = false;
25 enableParallelBuilding = false;
20
26
21 installPhase = ''
27 installPhase = ''
22− runHook preInstall
28+ runHook preInstall
29+
23− mkdir -p "$out/bin"
30+ mkdir -p "$out/bin"
24− mkdir -p "$out/share/applications"
31+ mkdir -p "$out/share/applications"
25− cp -pr release/chessx "$out/bin"
32+ cp -pr release/chessx "$out/bin"
26− cp -pr unix/chessx.desktop "$out/share/applications"
33+ cp -pr unix/chessx.desktop "$out/share/applications"
34+
35+ wrapProgram $out/bin/chessx \
36+ --prefix QT_PLUGIN_PATH : ${qtbase}/lib/qt-5.${lib.versions.minor qtbase.version}/plugins
37+
27− runHook postInstall
38+ runHook postInstall
28 '';
39 '';
29
40
30 meta = with stdenv.lib; {
41 meta = with stdenv.lib; {
@@ -32,5 +43,6 @@ stdenv.mkDerivation rec {
32 description = "ChessX allows you to browse and analyse chess games";
43 description = "ChessX allows you to browse and analyse chess games";
33 license = licenses.gpl2;
44 license = licenses.gpl2;
34 maintainers = [maintainers.luispedro];
45 maintainers = [maintainers.luispedro];
46+ platforms = platforms.linux;
35 };
47 };
36}
48}
pkgs/top-level/all-packages.nix+1−1
@@ -19730,7 +19730,7 @@ with pkgs;
19730
19730
19731 chessdb = callPackage ../games/chessdb { };
19731 chessdb = callPackage ../games/chessdb { };
19732
19732
19733− chessx = libsForQt5.callPackage ../games/chessx { };
19733+ chessx = libsForQt59.callPackage ../games/chessx { };
19734
19734
19735 chocolateDoom = callPackage ../games/chocolate-doom { };
19735 chocolateDoom = callPackage ../games/chocolate-doom { };
19736
19736