summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-11-09 22:16:38 +0200
committerEfraim Flashner <efraim@flashner.co.il>2019-11-09 22:16:38 +0200
commit141827db8ea6b7b3d75f9c707da1a9d86fcc4024 (patch)
tree5871f7f0b5925f962e2c3c510129a1937dcba5c5 /gnu/packages
parentb8f0a3fdc8e9263a061e4a3ea79c85099b284b15 (diff)
gnu: Add perl-moox-strictconstructor.
* gnu/packages/perl.scm (perl-moox-strictconstructor): New variable.
Diffstat (limited to 'gnu/packages')
-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 5107700cd7..0879fe8a0f 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6471,6 +6471,35 @@ takes additional parameters and uses @code{Getopt::Long::Descriptive} to
generate a command line tool.")
(license (package-license perl))))
+(define-public perl-moox-strictconstructor
+ (package
+ (name "perl-moox-strictconstructor")
+ (version "0.010")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/H/HA/HARTZELL/MooX-StrictConstructor-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0vvjgz7xbfmf69yav7sxsxmvklqv835xvh7h47w0apxmlkm9fjgr"))))
+ (build-system perl-build-system)
+ (native-inputs
+ `(("perl-test-fatal" ,perl-test-fatal)))
+ (propagated-inputs
+ `(("perl-class-method-modifiers" ,perl-class-method-modifiers)
+ ("perl-moo" ,perl-moo)
+ ("perl-strictures" ,perl-strictures)))
+ (home-page "https://metacpan.org/release/MooX-StrictConstructor")
+ (synopsis "Make Moo-based object constructors blow up on unknown attributes")
+ (description
+ "Loading @code{MooX::StrictConstructor} makes your constructors \"strict\".
+If your constructor is called with an attribute init argument that your class
+does not declare, then it dies.")
+ (license perl-license)))
+
(define-public perl-moox-types-mooselike
(package
(name "perl-moox-types-mooselike")