diff --git a/README.org b/README.org index 25e46f9..358a444 100644 --- a/README.org +++ b/README.org @@ -11,6 +11,7 @@ I'll probably push what I can upstream when I figure Guix out. | [[https://yadm.io/][yadm]] | OK | Check for implicit dependencies; description | | [[https://github.com/SqrtMinusOne/mpd-watcher][mpd-watcher]] | OK | | | [[https://github.com/nikola-kocic/i3-switch-tabs][i3-switch-tabs]] | OK | | +| [[https://github.com/Mange/rofi-emoji][rofi-emoji]] | OK | | | [[https://github.com/risacher/sunwait][sunwait]] | OK | Version number | | [[https://github.com/alfredopalhares/openvpn-update-resolv-conf][openvpn-update-resolv-conf]] | OK | Just watch out for $PATH if launched from OpenVPN | | [[https://github.com/yt-dlp/yt-dlp][yt-dlp]] | OK | | diff --git a/rofi-emoji.scm b/rofi-emoji.scm new file mode 100644 index 0000000..293cca1 --- /dev/null +++ b/rofi-emoji.scm @@ -0,0 +1,52 @@ +(define-module (rofi-emoji) + #:use-module (guix licenses) + #:use-module (guix packages) + #:use-module (guix build-system gnu) + #:use-module (guix git-download) + #:use-module (gnu packages autotools) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) + #:use-module (gnu packages gtk) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages xdisorg)) + +(define-public rofi-emoji + (package + (name "rofi-emoji") + (version "2.2.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Mange/rofi-emoji") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "01f9nw54mbwlj00mclf7qc2y95riaihzznbbmp0wc4c52pvxki4q")))) + (build-system gnu-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'fix-rofi-plugin-dir + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (string-append (assoc-ref outputs "out")))) + (substitute* "configure.ac" + (("\\[rofi_PLUGIN_INSTALL_DIR\\]=.*") + (format #f "[rofi_PLUGIN_INSTALL_DIR]=\"~a/lib/rofi\"\n" out))))))))) + (native-inputs + `(("autoconf" ,autoconf) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config) + ("automake" ,automake))) + (inputs + `(("cairo" ,cairo) + ("glib" ,glib) + ("libnotify" ,libnotify) + ("rofi" ,rofi) + ("wl-clipboard" ,wl-clipboard) + ("xsel" ,xsel) + ("xclip" ,xclip))) + (synopsis "Emoji selector plugin for Rofi") + (description "An emoji selector plugin for Rofi that copies the selected emoji to the clipboard.") + (home-page "https://github.com/Mange/rofi-emoji") + (license license:expat)))