nix-generate-from-cpan: quote homepage, stdenv.lib -> lib

wip/yesman
Stig Palmquist 3 years ago
parent 9f8b7cb4a8
commit f12ad54760
  1. 6
      maintainers/scripts/nix-generate-from-cpan.pl

@ -309,7 +309,7 @@ sub render_license {
# "GPL v2" or to "GPL v2 or later".
my $amb = 0;
# Whether the license is available inside `stdenv.lib.licenses`.
# Whether the license is available inside `lib.licenses`.
my $in_set = 1;
my $nix_license = $LICENSE_MAP{$cpan_license};
@ -331,7 +331,7 @@ sub render_license {
# Avoid defining the license line.
}
elsif ($in_set) {
my $lic = 'stdenv.lib.licenses';
my $lic = 'lib.licenses';
if ( @$licenses == 1 ) {
$license_line = "$lic.$licenses->[0]";
}
@ -449,7 +449,7 @@ print <<EOF;
meta = {
EOF
print <<EOF if defined $homepage;
homepage = $homepage;
homepage = "$homepage";
EOF
print <<EOF if defined $description && $description ne "Unknown";
description = "$description";

Loading…
Cancel
Save