nix-generate-from-cpan: Skip "if" package since it's part of Perl now

This commit is contained in:
Eelco Dolstra 2016-03-03 12:25:37 +01:00
parent 50b950fe8d
commit e2ad72342e

View File

@ -279,7 +279,7 @@ sub get_deps {
next if $n eq "perl"; next if $n eq "perl";
# Hacky way to figure out if this module is part of Perl. # Hacky way to figure out if this module is part of Perl.
if ( $n !~ /^JSON/ && $n !~ /^YAML/ && $n !~ /^Module::Pluggable/ ) { if ( $n !~ /^JSON/ && $n !~ /^YAML/ && $n !~ /^Module::Pluggable/ && $n !~ /^if$/ ) {
eval "use $n;"; eval "use $n;";
if ( !$@ ) { if ( !$@ ) {
DEBUG("skipping Perl-builtin module $n"); DEBUG("skipping Perl-builtin module $n");