summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorgemmaro <gemmaro.dev@gmail.com>2025-02-05 12:58:54 +0900
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2025-02-22 15:24:15 +0100
commitfba707805665e4691215e2453f84f3d34439b4a1 (patch)
treeb73e7da0694dc06b95ea41963ae4893cf7a8cbfd /gnu
parenta6c61bf9fc1b416e141f6594750d77d336e8b656 (diff)
gnu: Add perl-ref-util.
* gnu/packages/perl.scm (perl-ref-util): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Change-Id: Ie641a030e7d5cb0be786352c90b46e2facbcd0da
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/perl.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 5be256651ab..2af5a84a780 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -9818,6 +9818,35 @@ object and tying it, @code{Readonly} simply flips the @code{SvREADONLY} bit in
9818the scalar's @code{FLAGS} structure.") 9818the scalar's @code{FLAGS} structure.")
9819 (license license:perl-license))) 9819 (license license:perl-license)))
9820 9820
9821(define-public perl-ref-util
9822 (package
9823 (name "perl-ref-util")
9824 (version "0.204")
9825 (source
9826 (origin
9827 (method url-fetch)
9828 (uri (string-append "mirror://cpan/authors/id/A/AR/ARC/Ref-Util-"
9829 version ".tar.gz"))
9830 (sha256
9831 (base32 "1q85y5lzgl8wz5qnz3j6mch2fmllr668h54wszaz6i6gp8ysfps1"))))
9832 (build-system perl-build-system)
9833 (native-inputs (list perl-readonly))
9834 (propagated-inputs (list perl-ref-util-xs))
9835 (home-page "https://metacpan.org/release/Ref-Util")
9836 (synopsis "Utility functions for checking references")
9837 (description
9838 "@code{Ref::Util} introduces several functions to help identify references in
9839a smarter (and usually faster) way. The difference with conventional approach:
9840@itemize
9841@item No comparison against a string constant
9842@item Supports blessed variables
9843@item Supports tied variables and magic
9844@item Ignores overloading
9845@item Ignores subtle types
9846@item Usually faster
9847@end itemize")
9848 (license license:x11)))
9849
9821(define-public perl-ref-util-xs 9850(define-public perl-ref-util-xs
9822 (package 9851 (package
9823 (name "perl-ref-util-xs") 9852 (name "perl-ref-util-xs")