From 0f00c2aee22517634ebec13e9778762ed71ae2b0 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Sun, 24 Nov 2019 06:29:35 -0500 Subject: [PATCH] chessx: use qt5's mkDerivation and latest qt Fixes #74020 https://github.com/NixOS/nixpkgs/issues/65399 --- pkgs/games/chessx/default.nix | 33 ++++++++++++++++++++++----------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/pkgs/games/chessx/default.nix b/pkgs/games/chessx/default.nix index 3b460daefd1a..f0b04489edac 100644 --- a/pkgs/games/chessx/default.nix +++ b/pkgs/games/chessx/default.nix @@ -1,8 +1,16 @@ -{ stdenv, pkgconfig, zlib, qtbase, qtsvg, qttools, qtmultimedia, qmake, fetchurl, makeWrapper -, lib +{ mkDerivation +, stdenv +, pkgconfig +, zlib +, qtbase +, qtsvg +, qttools +, qtmultimedia +, qmake +, fetchurl }: -stdenv.mkDerivation rec { +mkDerivation rec { pname = "chessx"; version = "1.5.0"; @@ -11,15 +19,18 @@ stdenv.mkDerivation rec { sha256 = "09rqyra28w3z9ldw8sx07k5ap3sjlli848p737maj7c240rasc6i"; }; - buildInputs = [ - qtbase - qtsvg - qttools - qtmultimedia - zlib + nativeBuildInputs = [ + pkgconfig + qmake ]; - nativeBuildInputs = [ pkgconfig qmake makeWrapper ]; + buildInputs = [ + qtbase + qtmultimedia + qtsvg + qttools + zlib + ]; # RCC: Error in 'resources.qrc': Cannot find file 'i18n/chessx_da.qm' enableParallelBuilding = false; @@ -39,7 +50,7 @@ stdenv.mkDerivation rec { homepage = http://chessx.sourceforge.net/; description = "ChessX allows you to browse and analyse chess games"; license = licenses.gpl2; - maintainers = [maintainers.luispedro]; + maintainers = [ maintainers.luispedro ]; platforms = platforms.linux; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 027ee1701f3f..0813cb072314 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22510,7 +22510,7 @@ in chessdb = callPackage ../games/chessdb { }; - chessx = libsForQt59.callPackage ../games/chessx { }; + chessx = libsForQt5.callPackage ../games/chessx { }; chiaki = libsForQt5.callPackage ../games/chiaki { };