diff options
author | Eric Bavier <bavier@member.fsf.org> | 2015-04-06 17:14:14 -0500 |
---|---|---|
committer | Eric Bavier <bavier@member.fsf.org> | 2015-04-19 19:48:49 -0500 |
commit | 4be514cb47e2df65bea88770c6149f6a5abc9e7f (patch) | |
tree | b4d6e072711986e26935191a73ef23ef2c5e0e08 /gnu/packages | |
parent | 6a58b09280578d7bb22028314a5104c7467cf552 (diff) | |
download | guix-4be514cb47e2df65bea88770c6149f6a5abc9e7f.tar guix-4be514cb47e2df65bea88770c6149f6a5abc9e7f.tar.gz |
gnu: Add MooseX-StrictConstructor.
* gnu/packages/perl.scm (perl-moosex-strictconstructor): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/perl.scm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 2ebc7143ab..fc5e0c9999 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -2860,6 +2860,32 @@ separated into get and set methods. The get methods have the same name as the accessor, while set methods are prefixed with \"_set_\".") (license artistic2.0))) +(define-public perl-moosex-strictconstructor + (package + (name "perl-moosex-strictconstructor") + (version "0.19") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/D/DR/DROLSKY/" + "MooseX-StrictConstructor-" version ".tar.gz")) + (sha256 + (base32 + "0ccawja1kabgglrkdw5v82m1pbw189a0mnd33l43rs01d70p6ra8")))) + (build-system perl-build-system) + (native-inputs + `(("perl-moose" ,perl-moose) + ("perl-test-fatal" ,perl-test-fatal))) + (propagated-inputs + `(("perl-moose" ,perl-moose) + ("perl-namespace-autoclean" ,perl-namespace-autoclean))) + (home-page "http://search.cpan.org/dist/MooseX-StrictConstructor") + (synopsis "Strict object constructors for Moose") + (description "Simply loading this module makes your constructors +\"strict\". If your constructor is called with an attribute init argument that +your class does not declare, then it calls Moose->throw_error(). ") + (license artistic2.0))) + (define-public perl-moosex-traits-pluggable (package (name "perl-moosex-traits-pluggable") |