summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNemin <bergengocia@protonmail.com>2026-02-14 11:00:09 +0100
committerjgart <jgart@dismail.de>2026-02-23 10:38:36 -0500
commit02bf4e50a627544df4db0487b9bff8d37b41d00d (patch)
tree4efb3759e6e14e4f943a268d4e16fc0e1ecd4e0b /gnu
parent9207ce6874c56c57aa284e9999f08ad09d7dc2f2 (diff)
gnu: hare-lex: Update to 0.26.0.0.
* gnu/packages/hare-xyz.scm (hare-lex): Update to 0.26.0.0. [phases]{install}: Replace with haredo. [phases]{check}: Deleted phase. [phases]{build}: Deleted phase. [phases]{set-environment}: Added new phase. Change-Id: Ibc776c040568d52d3f5203718ae636644d9753d1 Signed-off-by: jgart <jgart@dismail.de>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/hare-xyz.scm23
1 files changed, 21 insertions, 2 deletions
diff --git a/gnu/packages/hare-xyz.scm b/gnu/packages/hare-xyz.scm
index 9006ddf639..514629f221 100644
--- a/gnu/packages/hare-xyz.scm
+++ b/gnu/packages/hare-xyz.scm
@@ -21,6 +21,7 @@
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages hare-apps)
#:use-module (guix build-system hare)
#:use-module (guix download)
#:use-module (guix gexp)
@@ -91,7 +92,7 @@
(define-public hare-lex
(package
(name "hare-lex")
- (version "0.25.2.3")
+ (version "0.26.0.0")
(source
(origin
(method git-fetch)
@@ -100,9 +101,27 @@
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "06jlkb1q8ybr6yx56c6ikxv5ywz44k04dpwxcc796cnpzpkgqlyf"))))
+ (base32 "1ps7byn8kdkfj8drxlmpc8dqzfbrvkpjqz7af4k2cmmg7k0y0rkl"))))
+ (native-inputs (list haredo))
(build-system hare-build-system)
(supported-systems %hare-supported-systems)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'build)
+ (delete 'check)
+ (add-before 'install 'substitute-vars
+ (lambda _
+ (substitute* "./install.do"
+ (("PREFIX=.*") (format #f "PREFIX=\"~a\"~%" #$output))
+ (("SRCDIR=.*") (format #f "SRCDIR=\"~a/share/hare\"~%" #$output))
+ (("HARESRCDIR=.*") (format #f "HARESRC=\"~a/share/hare\"~%" #$output))
+ (("THIRDPARTYDIR=.*") (format #f "THIRDPARTYDIR=\"~a/share/hare\"~%" #$output)))))
+ (replace 'install
+ (lambda _
+ (setenv "PREFIX" #$output)
+ (invoke "haredo" "install"))))))
(home-page "https://git.sr.ht/~stacyharper/hare-lex")
(synopsis "General purpose lexical tokenization machinery for Hare")
(description "This module provides a general purpose lexer machine for Hare.")