mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
nix-generate-from-cpan: Don't quote names that don't need it
This commit is contained in:
parent
aa564c9ed0
commit
50b950fe8d
@ -431,7 +431,7 @@ my $build_fun = -e "$pkg_path/Build.PL"
|
||||
print STDERR "===\n";
|
||||
|
||||
print <<EOF;
|
||||
"$attr_name" = $build_fun rec {
|
||||
${\(is_reserved($attr_name) ? "\"$attr_name\"" : $attr_name)} = $build_fun rec {
|
||||
name = "$pkg_name";
|
||||
src = fetchurl {
|
||||
url = "mirror://cpan/${\$module->path}/\${name}.${\$module->package_extension}";
|
||||
@ -450,7 +450,7 @@ EOF
|
||||
print <<EOF if defined $homepage;
|
||||
homepage = $homepage;
|
||||
EOF
|
||||
print <<EOF if defined $description;
|
||||
print <<EOF if defined $description && $description ne "Unknown";
|
||||
description = "$description";
|
||||
EOF
|
||||
print <<EOF if defined $license;
|
||||
|
Loading…
Reference in New Issue
Block a user