qalculate-qt: build with qt6

This commit is contained in:
QuantMint 2023-01-07 22:38:04 +01:00
parent 960e7415c1
commit 7f1a5d7f8d
2 changed files with 9 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, intltool, pkg-config, qmake, wrapQtAppsHook, libqalculate, qtbase, qttools }:
{ lib, stdenv, fetchFromGitHub, intltool, pkg-config, qmake, wrapQtAppsHook, libqalculate, qtbase, qttools, qtsvg, qtwayland }:
stdenv.mkDerivation rec {
pname = "qalculate-qt";
@ -8,11 +8,16 @@ stdenv.mkDerivation rec {
owner = "qalculate";
repo = "qalculate-qt";
rev = "v${version}";
sha256 = "sha256-1MU/Wici+NQWbjoNpE9q6jKx8aKt85OAfb+ZsN/oK5w=";
hash = "sha256-1MU/Wici+NQWbjoNpE9q6jKx8aKt85OAfb+ZsN/oK5w=";
};
nativeBuildInputs = [ qmake intltool pkg-config wrapQtAppsHook ];
buildInputs = [ libqalculate qtbase qttools ];
buildInputs = [ libqalculate qtbase qttools qtsvg qtwayland ];
postPatch = ''
substituteInPlace qalculate-qt.pro\
--replace "LRELEASE" "${qttools.dev}/bin/lrelease"
'';
meta = with lib; {
description = "The ultimate desktop calculator";

View file

@ -11036,7 +11036,7 @@ with pkgs;
qalculate-gtk = callPackage ../applications/science/math/qalculate-gtk { };
qalculate-qt = libsForQt5.callPackage ../applications/science/math/qalculate-qt { };
qalculate-qt = qt6Packages.callPackage ../applications/science/math/qalculate-qt { };
qastools = libsForQt5.callPackage ../tools/audio/qastools { };