Skip to content

Commit

Permalink
guix.scm: Fix clipboard support.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadcg committed Oct 17, 2024
1 parent 84e2f76 commit 4aeecea
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion guix.scm
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
(gnu packages sqlite)
(gnu packages tls)
(gnu packages webkit)
(gnu packages xdisorg)
((guix licenses) #:prefix license:))

(package
Expand Down Expand Up @@ -100,6 +101,15 @@
(substitute* "_build/cl-cffi-gtk/gdk/gdk.package.lisp"
(("libgtk-[0-9]\\.so" all)
(search-input-file inputs (string-append "/lib/" all))))))
(add-after 'unpack 'fix-clipboard-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "_build/trivial-clipboard/src/text.lisp"
(("\"xsel\"")
(string-append "\"" (assoc-ref inputs "xsel") "/bin/xsel\""))
(("\"wl-copy\"")
(string-append "\"" (assoc-ref inputs "wl-clipboard") "/bin/wl-copy\""))
(("\"wl-paste\"")
(string-append "\"" (assoc-ref inputs "wl-clipboard") "/bin/wl-paste\"")))))
(add-before 'build 'fix-common-lisp-cache-folder
(lambda _ (setenv "HOME" "/tmp")))
(add-before 'check 'configure-tests
Expand Down Expand Up @@ -132,7 +142,9 @@
pango
pkg-config
sqlite
webkitgtk-for-gtk3))
webkitgtk-for-gtk3
wl-clipboard
xsel))
(synopsis "Extensible web-browser in Common Lisp")
(home-page "https://nyxt-browser.com/")
(description "Nyxt is a keyboard-oriented, extensible web-browser designed
Expand Down

0 comments on commit 4aeecea

Please sign in to comment.