Archived
1
0
Fork 0

gnu: zabbix-cli: Use new style.

* gnu/packages/monitoring.scm (zabbix-cli)[arguments]: Use SEARCH-INPUT-FILE.
[inputs]: Remove labels.
This commit is contained in:
Marius Bakke 2022-06-21 17:05:16 +02:00
parent d29b206ef1
commit d485faf633
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -266,18 +266,18 @@ solution (server-side)")))
(arguments (arguments
'(#:phases (modify-phases %standard-phases '(#:phases (modify-phases %standard-phases
(add-after 'unpack 'use-absolute-ncurses (add-after 'unpack 'use-absolute-ncurses
(lambda _ (lambda* (#:key inputs #:allow-other-keys)
(substitute* "bin/zabbix-cli" (let ((clear (search-input-file inputs "bin/clear")))
(("'clear'") (substitute* "bin/zabbix-cli"
(string-append "'" (which "clear") "'"))))) (("'clear'")
(string-append "'" clear "'"))))))
(add-after 'unpack 'patch-setup.py (add-after 'unpack 'patch-setup.py
(lambda _ (lambda _
;; Install data_files to $out/share instead of /usr/share. ;; Install data_files to $out/share instead of /usr/share.
(substitute* "setup.py" (substitute* "setup.py"
(("/usr/") ""))))))) (("/usr/") "")))))))
(inputs (inputs
`(("clear" ,ncurses) (list ncurses python-requests))
("python-requests" ,python-requests)))
(home-page "https://github.com/unioslo/zabbix-cli") (home-page "https://github.com/unioslo/zabbix-cli")
(synopsis "Command-line interface to Zabbix") (synopsis "Command-line interface to Zabbix")
(description (description