[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/11: gnu: Add rofi-calc.
From: |
guix-commits |
Subject: |
07/11: gnu: Add rofi-calc. |
Date: |
Sun, 23 Jan 2022 17:36:41 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit feb22a2037872685cd3b0ef5c83010d7624764c1
Author: John Kehayias <john.kehayias@protonmail.com>
AuthorDate: Fri Jan 14 18:13:08 2022 -0500
gnu: Add rofi-calc.
* gnu/packages/xdisorg.scm (rofi-calc): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/xdisorg.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index eb94a00561..ec995c3496 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -78,6 +78,7 @@
#:use-module (guix build-system python)
#:use-module (guix build-system scons)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix hg-download)
#:use-module ((guix licenses) #:prefix license:)
@@ -1741,6 +1742,51 @@ applications you regularly use and also allows you to
search for an application
by name.")
(license license:expat)))
+(define-public rofi-calc
+ (package
+ (name "rofi-calc")
+ (version "2.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/svenstaro/rofi-calc")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1j23xwa6s27wyx6r0yb85cby6dggrcb103nqcfxr5li1mcqrgd9m"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Don't try to install directly to rofi, instead install
+ ;; to lib/rofi to match rofi's search-path ROFI_PLUGIN_PATH.
+ (add-after 'unpack 'patch-plugindir
+ (lambda _
+ (substitute* "Makefile.am"
+ (("plugindir=\\$\\{rofi_PLUGIN_INSTALL_DIR\\}\\/")
+ "plugindir=${libdir}/rofi/"))))
+ (add-after 'unpack 'patch-qalc-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/calc.c"
+ (("\"qalc\"")
+ (string-append "\""
+ (search-input-file inputs "bin/qalc")
+ "\""))))))))
+ (inputs
+ (list cairo libqalculate rofi))
+ (native-inputs
+ (list autoconf automake libtool pkg-config))
+ (home-page
+ "https://github.com/svenstaro/rofi-calc")
+ (synopsis "Do live calculations in rofi with qalc")
+ (description
+ "@code{rofi-calc} is a rofi plugin that uses qalculate's @code{qalc} to
parse
+natural language input and provide results.")
+ (license license:expat)))
+
(define-public tint2
(package
(name "tint2")
- branch master updated (8ef0473969 -> b45bbe561a), guix-commits, 2022/01/23
- 02/11: doc: Document search paths., guix-commits, 2022/01/23
- 03/11: gnu: Add font-charter., guix-commits, 2022/01/23
- 04/11: doc: Tweak Guix Home bits., guix-commits, 2022/01/23
- 01/11: compile: Really disable cross-module inlining and related features., guix-commits, 2022/01/23
- 05/11: gnu: Add utf-8-lineseparator., guix-commits, 2022/01/23
- 08/11: gnu: gtk-vnc: Remove dependency on GJS on non-x86_64., guix-commits, 2022/01/23
- 06/11: gnu: rofi: Add a search path for plugins., guix-commits, 2022/01/23
- 07/11: gnu: Add rofi-calc.,
guix-commits <=
- 10/11: gnu: gnome-settings-daemon: Build with correct librsvg., guix-commits, 2022/01/23
- 09/11: gnu: gtk-vnc: Build with correct librsvg., guix-commits, 2022/01/23
- 11/11: gnu: vlc: Build with correct librsvg., guix-commits, 2022/01/23