From e0af7679d8464ad39e002ddd213878b5614741c6 Mon Sep 17 00:00:00 2001 From: Robin Templeton Date: Thu, 26 Feb 2026 10:10:47 +0900 Subject: [PATCH] gnu: Add perl-enum. * gnu/packages/perl.scm (perl-enum): New variable. Change-Id: Idb6d35cae9f123ec31e5f60691d44ae3a92690e6 --- gnu/packages/perl.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index b554812abd..e486ee8ba5 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -42,6 +42,7 @@ ;;; Copyright © 2023 Nicolas Graves ;;; Copyright © 2020, 2023 Tim Gesthuizen ;;; Copyright © 2025 Gabriel Santos +;;; Copyright © 2026 Robin Templeton ;;; ;;; This file is part of GNU Guix. ;;; @@ -4875,6 +4876,26 @@ an ordered list of file system elements separated by a platform-standard separator.") (license (package-license perl)))) +(define-public perl-enum + (package + (name "perl-enum") + (version "1.12") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/N/NE/NEILB/enum-" version + ".tar.gz")) + (sha256 + (base32 "1aby8k8xfyzxjiwbrh2iqcpad4lz90grmsf50a5yv21qrn8si9v9")))) + (build-system perl-build-system) + (home-page "https://metacpan.org/release/enum") + (synopsis "C-style enumerated types and bitmask flags in Perl") + (description "This module is used to define a set of constants with +ordered numeric values, similar to enumeration types in the C programming +language. It also supports bit-mask constants, where the value assigned to +each constant has exactly one bit set.") + (license license:perl-license))) + (define-public perl-error (package (name "perl-error")