pro-office-calculator: modernize

This commit is contained in:
Rafael Ieda
2025-10-26 10:38:24 -03:00
parent 08532c3ee6
commit f082792652
@@ -1,37 +1,39 @@
{
mkDerivation,
stdenv,
lib,
fetchFromGitHub,
tinyxml-2,
cmake,
qtbase,
qtmultimedia,
qt5,
}:
mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
version = "1.0.13";
pname = "pro-office-calculator";
src = fetchFromGitHub {
owner = "RobJinman";
repo = "pro_office_calc";
rev = "v${version}";
sha256 = "1v75cysargmp4fk7px5zgib1p6h5ya4w39rndbzk614fcnv0iipd";
tag = "v${finalAttrs.version}";
hash = "sha256-7cYItmWOBDP/ajanwYnyBZobVny/9HumI7e+rLRn5ew=";
};
buildInputs = [
qtbase
qtmultimedia
qt5.qtbase
qt5.qtmultimedia
tinyxml-2
];
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [
cmake
qt5.wrapQtAppsHook
];
meta = with lib; {
meta = {
description = "Completely normal office calculator";
mainProgram = "procalc";
homepage = "https://proofficecalculator.com/";
maintainers = [ maintainers.pmiddend ];
platforms = platforms.linux;
license = licenses.gpl3;
maintainers = with lib.maintainers; [ pmiddend ];
platforms = lib.platforms.linux;
license = lib.licenses.gpl3Only;
};
}
})