summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/guile-xyz.scm37
1 files changed, 23 insertions, 14 deletions
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index e6aea6d67b6..b25061eb074 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -1652,15 +1652,16 @@ the Guile compiler tower to generate the DSL from AWS JSON specifications.")
1652(define-public guile-mqtt 1652(define-public guile-mqtt
1653 (package 1653 (package
1654 (name "guile-mqtt") 1654 (name "guile-mqtt")
1655 (version "0.2.1") 1655 (version "1.0.0")
1656 (source 1656 (source
1657 (origin 1657 (origin
1658 (method url-fetch) 1658 (method git-fetch)
1659 (uri (string-append "https://github.com/mdjurfeldt/" name 1659 (uri (git-reference
1660 "/releases/download/v" version 1660 (url "https://github.com/mdjurfeldt/guile-mqtt")
1661 "/" name "-" version ".tar.gz")) 1661 (commit (string-append "v" version))))
1662 (file-name (git-file-name name version))
1662 (sha256 1663 (sha256
1663 (base32 "16a3r6yk41yskwv4qbkrsi0f5rvc7aw2s5di74i8y89j1x9yp9zs")))) 1664 (base32 "1lvxic93cyzhdq7gb22pfz5j5pf7b1pcv0ahblkan8jbhzpqxvm0"))))
1664 (build-system gnu-build-system) 1665 (build-system gnu-build-system)
1665 (arguments 1666 (arguments
1666 (list 1667 (list
@@ -1668,15 +1669,23 @@ the Guile compiler tower to generate the DSL from AWS JSON specifications.")
1668 #~(list "GUILE_AUTO_COMPILE=0") 1669 #~(list "GUILE_AUTO_COMPILE=0")
1669 #:phases 1670 #:phases
1670 #~(modify-phases %standard-phases 1671 #~(modify-phases %standard-phases
1671 (add-after 'unpack 'patch-extension-path 1672 (add-before 'build 'patch-extension-path
1672 (lambda* (#:key inputs #:allow-other-keys) 1673 (lambda* (#:key inputs #:allow-other-keys)
1673 (substitute* "module/ffi/mosquitto.scm" 1674 (setenv "HOME" "/tmp")
1674 (("list #f \"libmosquitto\"") 1675 (with-directory-excursion "module"
1675 (string-append 1676 (invoke "make" "ffi/mosquitto.scm")
1676 "list #f \"" 1677 (substitute* "ffi/mosquitto.scm"
1677 (search-input-file inputs "/lib/libmosquitto.so") 1678 (("list #f \"libmosquitto\"")
1678 "\"")))))))) 1679 (string-append
1679 (native-inputs (list guile-3.0 pkg-config)) 1680 "list #f \""
1681 (search-input-file inputs "/lib/libmosquitto.so")
1682 "\"")))))))))
1683 (native-inputs (list autoconf
1684 automake
1685 guile-3.0
1686 nyacc-2.01
1687 pkg-config
1688 texinfo))
1680 (inputs (list mosquitto)) 1689 (inputs (list mosquitto))
1681 (home-page "https://github.com/mdjurfeldt/guile-mqtt") 1690 (home-page "https://github.com/mdjurfeldt/guile-mqtt")
1682 (synopsis "Guile bindings for the libmosquitto library") 1691 (synopsis "Guile bindings for the libmosquitto library")