From e2ad72342e7e612a5c9d6966a09ca13b21448c5b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 3 Mar 2016 12:25:37 +0100 Subject: [PATCH] nix-generate-from-cpan: Skip "if" package since it's part of Perl now --- maintainers/scripts/nix-generate-from-cpan.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintainers/scripts/nix-generate-from-cpan.pl b/maintainers/scripts/nix-generate-from-cpan.pl index a2edf165554c..73e13bfe09a6 100755 --- a/maintainers/scripts/nix-generate-from-cpan.pl +++ b/maintainers/scripts/nix-generate-from-cpan.pl @@ -279,7 +279,7 @@ sub get_deps { next if $n eq "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;"; if ( !$@ ) { DEBUG("skipping Perl-builtin module $n");