about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/pro-office-calculator/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/games/pro-office-calculator/default.nix')
-rw-r--r--nixpkgs/pkgs/games/pro-office-calculator/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/pro-office-calculator/default.nix b/nixpkgs/pkgs/games/pro-office-calculator/default.nix
new file mode 100644
index 000000000000..381a6e8742b0
--- /dev/null
+++ b/nixpkgs/pkgs/games/pro-office-calculator/default.nix
@@ -0,0 +1,24 @@
+{ mkDerivation, lib, fetchFromGitHub, tinyxml-2, cmake, qtbase, qtmultimedia }:
+mkDerivation rec {
+  version = "1.0.13";
+  pname = "pro-office-calculator";
+
+  src = fetchFromGitHub {
+    owner  = "RobJinman";
+    repo   = "pro_office_calc";
+    rev    = "v${version}";
+    sha256 = "1v75cysargmp4fk7px5zgib1p6h5ya4w39rndbzk614fcnv0iipd";
+  };
+
+  buildInputs = [ qtbase qtmultimedia tinyxml-2 ];
+
+  nativeBuildInputs = [ cmake ];
+
+  meta = with lib; {
+    description = "A completely normal office calculator";
+    homepage = "https://proofficecalculator.com/";
+    maintainers = [ maintainers.pmiddend ];
+    platforms = platforms.linux;
+    license = licenses.gpl3;
+  };
+}