Use js-paho-mqtt in hodd
modules/cogd/packages/web.scm
| 8 | 8 | (guix git-download) | |
| 9 | 9 | (guix gexp) | |
| 10 | 10 | (guix build-system copy) | |
| 11 | - | ((guix licenses) #:prefix license:)) | |
| 11 | + | ((guix licenses) #:prefix license:) | |
| 12 | + | (cogd packages javascript)) | |
| 12 | 13 | ||
| 13 | 14 | (define-public simpledotcss | |
| 14 | 15 | (package | |
… | |||
| 51 | 52 | (file-name (git-file-name name version)) | |
| 52 | 53 | (sha256 | |
| 53 | 54 | (base32 "042fd53sy6fw2x3f788759l86m8vqnmmyrsp3kanp79v5qk3k3yy")))) | |
| 55 | + | (build-system copy-build-system) | |
| 54 | 56 | (arguments | |
| 55 | 57 | (list | |
| 56 | 58 | #:install-plan | |
| 57 | - | #~'(("." "share/web/hodd/")))) | |
| 58 | - | (build-system copy-build-system) | |
| 59 | + | #~'(("." "share/web/hodd/")) | |
| 60 | + | #:phases | |
| 61 | + | #~(modify-phases %standard-phases | |
| 62 | + | (add-after 'unpack 'replace-paho-mqtt | |
| 63 | + | (lambda* (#:key native-inputs inputs #:allow-other-keys) | |
| 64 | + | (copy-file (search-input-file (or native-inputs inputs) | |
| 65 | + | "share/javascript/paho-mqtt.min.js") | |
| 66 | + | "js/paho-mqtt.js")))))) | |
| 67 | + | (native-inputs (list js-paho-mqtt)) | |
| 59 | 68 | (home-page "https://rroemhild.github.io/hodd/") | |
| 60 | 69 | (synopsis "Homie Device Discovery") | |
| 61 | 70 | (description | |