Skip to content

Commit

Permalink
speedcrunch: allow building with qt 5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Apr 28, 2017
1 parent 8d27aad commit bf4710f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions pkgs/applications/science/math/speedcrunch/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchgit, cmake, qtbase, qttools }:
{ stdenv, fetchgit, cmake, makeQtWrapper, qtbase, qttools }:

stdenv.mkDerivation rec {
name = "speedcrunch-${version}";
Expand All @@ -11,14 +11,20 @@ stdenv.mkDerivation rec {
sha256 = "0vh7cd1915bjqzkdp3sk25ngy8cq624mkh8c53c5bnzk357kb0fk";
};

enableParallelBuilding = true;

buildInputs = [ qtbase qttools ];

nativeBuildInputs = [ cmake ];
nativeBuildInputs = [ cmake makeQtWrapper ];

preConfigure = ''
cd src
'';

postFixup = ''
wrapQtProgram $out/bin/speedcrunch
'';

meta = with stdenv.lib; {
homepage = http://speedcrunch.org;
license = licenses.gpl2Plus;
Expand All @@ -30,7 +36,8 @@ stdenv.mkDerivation rec {
full keyboard-friendly and more than 15 built-in math function.
'';
maintainers = with maintainers; [ gebner ];
platforms = platforms.all;
broken = builtins.compareVersions qtbase.version "5.8.0" >= 0;
inherit (qtbase.meta) platforms;
# works with qt 5.6 and qt 5.8
broken = builtins.compareVersions qtbase.version "5.7.0" == 0;
};
}
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -17765,7 +17765,7 @@ with pkgs;

yacas = callPackage ../applications/science/math/yacas { };

speedcrunch = libsForQt56.callPackage ../applications/science/math/speedcrunch { };
speedcrunch = libsForQt5.callPackage ../applications/science/math/speedcrunch { };

### SCIENCE / MISC

Expand Down

0 comments on commit bf4710f

Please sign in to comment.