summary refs log tree commit diff
path: root/pkgs/desktops/lumina/lumina-calculator/default.nix
blob: 70e0f2e3511c09a22078a78eefaa9e7c1f28763f (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
{ stdenv, fetchFromGitHub, qmake, qtbase, qttools }:

stdenv.mkDerivation rec {
  pname = "lumina-calculator";
  version = "2019-04-27";

  src = fetchFromGitHub {
    owner = "lumina-desktop";
    repo = pname;
    rev = "ccb792fc713aa7163fffd37fc20c83ffe9ca7523";
    sha256 = "0cdyz94znycsc3qxg5bmg51bwms7586d4ja1bsmj8cb9pd3lv980";
  };
  
  sourceRoot = "source/src-qt5";

  nativeBuildInputs = [ qmake qttools ];

  buildInputs = [ qtbase ];

  qmakeFlags = [
    "CONFIG+=WITH_I18N"
    "LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease"
  ];

  meta = with stdenv.lib; {
    description = "Scientific calculator for the Lumina Desktop";
    homepage = https://github.com/lumina-desktop/lumina-calculator;
    license = licenses.bsd3;
    platforms = platforms.unix;
    maintainers = [ maintainers.romildo ];
  };
}