about summary refs log tree commit diff
path: root/pkgs/applications/science/math/speedcrunch/default.nix
blob: 33de9cd0d975ce92ef3f9feabef661f245b60d70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, fetchgit, cmake, qtbase, qttools }:

stdenv.mkDerivation rec {
  name = "speedcrunch-${version}";
  version = "0.12.0";

  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";
  };

  buildInputs = [ qtbase qttools ];

  nativeBuildInputs = [ cmake ];

  preConfigure = ''
    cd src
  '';

  meta = with stdenv.lib; {
    homepage    = http://speedcrunch.org;
    license     = licenses.gpl2Plus;
    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.
    '';
    maintainers = with maintainers; [ gebner ];
    platforms = platforms.all;
    broken = builtins.compareVersions qtbase.version "5.8.0" >= 0;
  };
}