summaryrefslogtreecommitdiff
path: root/guix.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2022-11-12 19:44:55 -0500
committerDavid Thompson <dthompson@vistahigherlearning.com>2022-11-12 19:44:55 -0500
commit5230745b9a7660eb037c5ea12a3eced985b6317f (patch)
tree803dbaa0345b5c6a6c08b02551fa37c56d483b46 /guix.scm
parentd17878f6c12c10a49196bb08f737f36b11e61c31 (diff)
guix: Modernize package definition.
Diffstat (limited to 'guix.scm')
-rw-r--r--guix.scm36
1 files changed, 15 insertions, 21 deletions
diff --git a/guix.scm b/guix.scm
index 557a6a1..b73a83a 100644
--- a/guix.scm
+++ b/guix.scm
@@ -30,43 +30,37 @@
;;
;; To use as the basis for a development environment, run:
;;
-;; guix environment -l guix.scm
+;; guix shell
;;
;;; Code:
-(use-modules (guix packages)
- (guix licenses)
+(use-modules (guix build-system gnu)
+ (guix gexp)
(guix git-download)
- (guix build-system gnu)
+ (guix licenses)
+ (guix packages)
(gnu packages)
(gnu packages autotools)
- (gnu packages pkg-config)
- (gnu packages guile))
+ (gnu packages guile)
+ (gnu packages pkg-config))
+
+(define %source-dir (dirname (current-filename)))
(package
(name "guile-websocket")
(version "0.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "git://dthompson.us/guile-websocket.git")
- (commit "d58d696")))
- (sha256
- (base32
- "10r8384frlyrljjdyzilrh8hzi60v9hisx4fxjs7rmg9g01cs77k"))))
+ (source (local-file %source-dir
+ #:recursive? #t
+ #:select? (git-predicate %source-dir)))
(build-system gnu-build-system)
(arguments
'(#:make-flags '("GUILE_AUTO_COMPILE=0")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'bootstrap
- (lambda _ (zero? (system* "sh" "bootstrap")))))))
- (native-inputs
- `(("autoconf" ,autoconf)
- ("automake" ,automake)
- ("pkg-config" ,pkg-config)))
- (inputs
- `(("guile" ,guile-2.0)))
+ (lambda _ (invoke "sh" "bootstrap"))))))
+ (native-inputs (list autoconf automake pkg-config))
+ (inputs (list guile-3.0))
(synopsis "Websocket server/client for Guile")
(description "Guile-websocket provides an implementation of the
WebSocket protocol as defined by RFC 6455.")