mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: wl-clipboard: Don't require helper tools in $PATH.
* gnu/packages/xdisorg.scm (wl-clipboard)[arguments]: Add a new 'patch-file-names phase. [inputs]: Add coreutils and xdg-utils. Reported by pineapples in #guix.
This commit is contained in:
parent
992aa56e7c
commit
df48a11e1b
1 changed files with 16 additions and 2 deletions
|
@ -2235,11 +2235,25 @@ (define-public wl-clipboard
|
|||
(sha256
|
||||
(base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
|
||||
(build-system meson-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-file-names
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* (find-files "src" "\\.c$")
|
||||
(("\"(cat|rm)\"" _ command)
|
||||
(string-append "\"" (assoc-ref inputs "coreutils")
|
||||
"/bin/" command "\""))
|
||||
(("\"xdg-mime\"")
|
||||
(string-append "\"" (assoc-ref inputs "xdg-utils")
|
||||
"/bin/xdg-mime\""))))))))
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)))
|
||||
(inputs
|
||||
`(("wayland" ,wayland)
|
||||
("wayland-protocols" ,wayland-protocols)))
|
||||
`(("coreutils" ,coreutils)
|
||||
("wayland" ,wayland)
|
||||
("wayland-protocols" ,wayland-protocols)
|
||||
("xdg-utils" ,xdg-utils)))
|
||||
(home-page "https://github.com/bugaevc/wl-clipboard")
|
||||
(synopsis "Command-line copy/paste utilities for Wayland")
|
||||
(description "Wl-clipboard is a set of command-line copy/paste utilities for
|
||||
|
|
Loading…
Reference in a new issue