2020-05-23 11:08:58 +01:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, qmake, qtbase, qttools }:
|
2019-05-24 21:22:21 +01:00
|
|
|
|
2020-05-23 11:08:58 +01:00
|
|
|
mkDerivation rec {
|
2019-05-24 21:22:21 +01:00
|
|
|
pname = "lumina-calculator";
|
2020-05-21 17:26:22 +01:00
|
|
|
version = "1.6.0";
|
2019-05-24 21:22:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lumina-desktop";
|
|
|
|
repo = pname;
|
2020-05-21 17:26:22 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1238d1m0mjkwkdpgq165a4ql9aql0aji5f41rzdzny6m7ws9nm2y";
|
2019-05-24 21:22:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/lumina-desktop/lumina-calculator";
|
2019-05-24 21:22:21 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|