diff options
author | Stig Palmquist <stig@stig.io> | 2021-01-10 16:13:57 +0100 |
---|---|---|
committer | Stig Palmquist <stig@stig.io> | 2021-01-10 16:13:57 +0100 |
commit | f12ad547600edc662ceeb9d6a4374e05ec2f014b (patch) | |
tree | b1ad31eed1a8935684ca681ef62b67a6f5db1dd7 /maintainers/scripts | |
parent | 9f8b7cb4a8948afe0701e5d717a4ee9cbf38163c (diff) |
nix-generate-from-cpan: quote homepage, stdenv.lib -> lib
Diffstat (limited to 'maintainers/scripts')
-rwxr-xr-x | maintainers/scripts/nix-generate-from-cpan.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/maintainers/scripts/nix-generate-from-cpan.pl b/maintainers/scripts/nix-generate-from-cpan.pl index f02af4ea66939..6494acb50da5b 100755 --- a/maintainers/scripts/nix-generate-from-cpan.pl +++ b/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"; |