2023-01-11 07:51:40 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, intltool, pkg-config, qmake, wrapQtAppsHook, libqalculate, qtbase, qttools, qtsvg, qtwayland }:
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qalculate-qt";
|
2023-03-08 16:32:21 +00:00
|
|
|
version = "4.6.0";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qalculate";
|
|
|
|
repo = "qalculate-qt";
|
|
|
|
rev = "v${version}";
|
2023-03-08 16:32:21 +00:00
|
|
|
hash = "sha256-/TDzjlB8rW/TorndcLbxY9pc3q7vY3M6eLxBRfnBs9Y=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake intltool pkg-config wrapQtAppsHook ];
|
2023-01-11 07:51:40 +00:00
|
|
|
buildInputs = [ libqalculate qtbase qttools qtsvg qtwayland ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace qalculate-qt.pro\
|
|
|
|
--replace "LRELEASE" "${qttools.dev}/bin/lrelease"
|
|
|
|
'';
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The ultimate desktop calculator";
|
|
|
|
homepage = "http://qalculate.github.io";
|
|
|
|
maintainers = with maintainers; [ _4825764518 ];
|
|
|
|
license = licenses.gpl2Plus;
|
2022-11-27 09:42:12 +00:00
|
|
|
platforms = platforms.linux;
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
}
|