Re-export guile-usbrelay
modules/cogd/packages/hardware.scm
| 2 | 2 | ;;; | |
| 3 | 3 | ;;; SPDX-License-Identifier: GPL-3.0-or-later | |
| 4 | 4 | ||
| 5 | - | (define-module (cogd packages hardware)) | |
| 6 | - | ||
| 7 | - | (use-modules (guix packages) | |
| 8 | - | (guix git-download) | |
| 9 | - | (guix gexp) | |
| 10 | - | (guix utils) | |
| 11 | - | (guix build-system guile) | |
| 12 | - | ((guix licenses) #:prefix license:) | |
| 13 | - | (gnu packages commencement) | |
| 14 | - | (gnu packages guile) | |
| 15 | - | (gnu packages libusb) | |
| 16 | - | (gnu packages mes) | |
| 17 | - | (gnu packages pkg-config)) | |
| 18 | - | ||
| 19 | - | (define-public guile-usbrelay | |
| 20 | - | (package | |
| 21 | - | (name "guile-usbrelay") | |
| 22 | - | (version "0.1.0") | |
| 23 | - | (source | |
| 24 | - | (origin | |
| 25 | - | (method git-fetch) | |
| 26 | - | (uri (git-reference | |
| 27 | - | (url "https://repo.pisemsky.site/git/guile-usbrelay") | |
| 28 | - | (commit version))) | |
| 29 | - | (file-name (git-file-name name version)) | |
| 30 | - | (sha256 | |
| 31 | - | (base32 "0ndgkazv9bnyj45pccym11245c65hlvsvzmx0acpzlywz7xxyy72")))) | |
| 32 | - | (build-system guile-build-system) | |
| 33 | - | (arguments | |
| 34 | - | (list | |
| 35 | - | #:source-directory "modules" | |
| 36 | - | #:phases | |
| 37 | - | #~(modify-phases %standard-phases | |
| 38 | - | (add-before 'build 'compile-ffi | |
| 39 | - | (lambda* (#:key inputs #:allow-other-keys) | |
| 40 | - | (setenv "GUILE_AUTO_COMPILE" "0") | |
| 41 | - | (invoke "guile" "make.scm")))))) | |
| 42 | - | (native-inputs (list gcc-toolchain guile-3.0 nyacc pkg-config)) | |
| 43 | - | (inputs (list hidapi)) | |
| 44 | - | (propagated-inputs (list nyacc)) | |
| 45 | - | (home-page "https://repo.pisemsky.site/guile-usbrelay") | |
| 46 | - | (synopsis "Control USB HID relays from Guile") | |
| 47 | - | (description | |
| 48 | - | "This package provides a Guile Scheme API to control dcttech USB HID | |
| 49 | - | relay modules and their clones.") | |
| 50 | - | (license license:lgpl3+))) | |
| 5 | + | (define-library (cogd packages hardware) | |
| 6 | + | (export guile-usbrelay) | |
| 7 | + | (import (only (gnu packages hardware) guile-usbrelay))) |