2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, mkDerivation, fetchFromGitHub, qmake, qtbase, qttools }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "lumina-calculator";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "1.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lumina-desktop";
|
|
|
|
repo = pname;
|
2020-05-29 06:06:01 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1238d1m0mjkwkdpgq165a4ql9aql0aji5f41rzdzny6m7ws9nm2y";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-01-17 00:15:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
sourceRoot = "source/src-qt5";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
|
|
|
|
qmakeFlags = [
|
|
|
|
"CONFIG+=WITH_I18N"
|
2021-01-17 00:15:33 +00:00
|
|
|
"LRELEASE=${lib.getDev qttools}/bin/lrelease"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Scientific calculator for the Lumina Desktop";
|
|
|
|
homepage = "https://github.com/lumina-desktop/lumina-calculator";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|