6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
29 lines
878 B
Nix
29 lines
878 B
Nix
{ lib, stdenv, fetchFromGitHub, intltool, pkg-config, qmake, wrapQtAppsHook, libqalculate, qtbase, qttools, qtsvg, qtwayland }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "qalculate-qt";
|
|
version = "4.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "qalculate";
|
|
repo = "qalculate-qt";
|
|
rev = "v${version}";
|
|
hash = "sha256-1MU/Wici+NQWbjoNpE9q6jKx8aKt85OAfb+ZsN/oK5w=";
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake intltool pkg-config wrapQtAppsHook ];
|
|
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";
|
|
homepage = "http://qalculate.github.io";
|
|
maintainers = with maintainers; [ _4825764518 ];
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|