diff options
author | gemmaro <[email protected]> | 2025-02-05 12:58:54 +0900 |
---|---|---|
committer | Nicolas Goaziou <[email protected]> | 2025-02-22 15:24:15 +0100 |
commit | fba707805665e4691215e2453f84f3d34439b4a1 (patch) | |
tree | b73e7da0694dc06b95ea41963ae4893cf7a8cbfd /gnu | |
parent | a6c61bf9fc1b416e141f6594750d77d336e8b656 (diff) |
gnu: Add perl-ref-util.
* gnu/packages/perl.scm (perl-ref-util): New variable.
Signed-off-by: Nicolas Goaziou <[email protected]>
Change-Id: Ie641a030e7d5cb0be786352c90b46e2facbcd0da
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/perl.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 5be256651a..2af5a84a78 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 the scalar's @code{FLAGS} structure.") (license license:perl-license))) +(define-public perl-ref-util + (package + (name "perl-ref-util") + (version "0.204") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/A/AR/ARC/Ref-Util-" + version ".tar.gz")) + (sha256 + (base32 "1q85y5lzgl8wz5qnz3j6mch2fmllr668h54wszaz6i6gp8ysfps1")))) + (build-system perl-build-system) + (native-inputs (list perl-readonly)) + (propagated-inputs (list perl-ref-util-xs)) + (home-page "https://metacpan.org/release/Ref-Util") + (synopsis "Utility functions for checking references") + (description + "@code{Ref::Util} introduces several functions to help identify references in +a smarter (and usually faster) way. The difference with conventional approach: +@itemize +@item No comparison against a string constant +@item Supports blessed variables +@item Supports tied variables and magic +@item Ignores overloading +@item Ignores subtle types +@item Usually faster +@end itemize") + (license license:x11))) + (define-public perl-ref-util-xs (package (name "perl-ref-util-xs") |