don't mark ::XS as a dep, but do set dynamic_config = 1
[gitmo/Package-Stash.git] / inc / DistMeta.pm
1 package inc::DistMeta;
2 use Moose;
3
4 has metadata => (
5     is       => 'ro',
6     isa      => 'HashRef',
7     required => 1,
8 );
9
10 with 'Dist::Zilla::Role::MetaProvider';
11
12 around BUILDARGS => sub {
13     my $orig = shift;
14     my $self = shift;
15
16     my $params = $self->$orig(@_);
17
18     my $zilla       = delete $params->{zilla};
19     my $plugin_name = delete $params->{plugin_name};
20
21     return {
22         zilla       => $zilla,
23         plugin_name => $plugin_name,
24         metadata    => $params,
25     };
26 };
27
28 __PACKAGE__->meta->make_immutable;
29 no Moose;
30
31 1;