2017-04-28 02:41:40 +02:00
|
|
|
{ stdenv, fetchgit, cmake, makeQtWrapper, qtbase, qttools }:
|
2013-09-27 00:58:54 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-19 18:44:32 +02:00
|
|
|
name = "speedcrunch-${version}";
|
2017-02-02 02:13:54 +01:00
|
|
|
version = "0.12.0";
|
2013-09-27 00:58:54 +02:00
|
|
|
|
2017-02-02 02:13:54 +01:00
|
|
|
src = fetchgit {
|
|
|
|
# the tagging is not standard, so you probably need to check this when updating
|
|
|
|
rev = "refs/tags/release-${version}";
|
|
|
|
url = "https://bitbucket.org/heldercorreia/speedcrunch";
|
|
|
|
sha256 = "0vh7cd1915bjqzkdp3sk25ngy8cq624mkh8c53c5bnzk357kb0fk";
|
2013-09-27 00:58:54 +02:00
|
|
|
};
|
|
|
|
|
2017-04-28 02:41:40 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-02-02 02:13:54 +01:00
|
|
|
buildInputs = [ qtbase qttools ];
|
2013-09-27 00:58:54 +02:00
|
|
|
|
2017-04-28 02:41:40 +02:00
|
|
|
nativeBuildInputs = [ cmake makeQtWrapper ];
|
2013-09-27 00:58:54 +02:00
|
|
|
|
2017-02-02 02:13:54 +01:00
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
'';
|
2013-09-27 00:58:54 +02:00
|
|
|
|
2017-04-28 02:41:40 +02:00
|
|
|
postFixup = ''
|
|
|
|
wrapQtProgram $out/bin/speedcrunch
|
|
|
|
'';
|
|
|
|
|
2015-05-27 21:56:04 +02:00
|
|
|
meta = with stdenv.lib; {
|
2016-06-19 18:44:32 +02:00
|
|
|
homepage = http://speedcrunch.org;
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2013-09-27 00:58:54 +02:00
|
|
|
description = "A fast power user calculator";
|
|
|
|
longDescription = ''
|
|
|
|
SpeedCrunch is a fast, high precision and powerful desktop calculator.
|
|
|
|
Among its distinctive features are a scrollable display, up to 50 decimal
|
|
|
|
precisions, unlimited variable storage, intelligent automatic completion
|
|
|
|
full keyboard-friendly and more than 15 built-in math function.
|
|
|
|
'';
|
2016-06-19 18:44:32 +02:00
|
|
|
maintainers = with maintainers; [ gebner ];
|
2017-04-28 02:41:40 +02:00
|
|
|
inherit (qtbase.meta) platforms;
|
|
|
|
# works with qt 5.6 and qt 5.8
|
|
|
|
broken = builtins.compareVersions qtbase.version "5.7.0" == 0;
|
2013-09-27 00:58:54 +02:00
|
|
|
};
|
|
|
|
}
|