From 9304e1e98a7da3dc876a304923e590a08803faba Mon Sep 17 00:00:00 2001 From: Ryan Prior Date: Fri, 15 May 2020 14:57:34 -0500 Subject: [PATCH 3/6] gnu: Add pantheon-calculator. * gnu/packages/pantheon.scm (pantheon-calculator): New variable. --- gnu/packages/pantheon.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/pantheon.scm b/gnu/packages/pantheon.scm index a5ee6fafce..2a15f4316a 100644 --- a/gnu/packages/pantheon.scm +++ b/gnu/packages/pantheon.scm @@ -116,3 +116,36 @@ in apps built for the Pantheon desktop.") on Flathub or another third-party website providing a Flatpak app for download.") (license license:gpl3))) + +(define-public pantheon-calculator + (package + (name "pantheon-calculator") + (version "1.5.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/elementary/calculator.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1csxsr2c8qvl97xz9ahwn91z095nzgr0i1mbcb1spljll2sr9lkj")))) + (build-system meson-build-system) + (arguments '(#:glib-or-gtk? #t)) + (inputs + `(("granite" ,granite) + ("gtk" ,gtk+))) + (native-inputs + `(("glib" ,glib) + ("cmake" ,cmake) + ("libgee" ,libgee) + ("glib:bin" ,glib "bin") ; for glib-compile-schemas + ("gettext" ,gettext-minimal) + ("pkg-config" ,pkg-config) + ("vala" ,vala))) + (home-page "https://github.com/elementary/calculator") + (synopsis "Desktop calculator") + (description "Calculator is an application for performing simple arithmatic. +It is the default calculator application in the Pantheon desktop.") + (license license:gpl3))) -- 2.17.1