!sUXcTulPzyhnqOiFPL:helsinki-systems.de

NixOS Perl

47 Members
12 Servers

Load older messages


SenderMessageTime
19 Aug 2022
@stigo:matrix.orgstigo
   Software Foundation; either version 1, or (at your option) any
   later version, or```
13:59:43
@stigo:matrix.orgstigo *
   Software Foundation; either version 1, or (at your option) any
   later version, or`
13:59:52
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dealright, that helps13:59:57
@stigo:matrix.orgstigohttps://metacpan.org/dist/Software-License/source/lib/Software/License/Perl_5.pm14:00:06
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de(I'm currently writing a meta generator for all perl packages)14:00:09
@stigo:matrix.orgstigo(silly matrix paste)14:00:11
@stigo:matrix.orgstigoSo for gpl: " the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version"14:00:43
@stigo:matrix.orgstigo * So for gpl: " the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version"14:00:48
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @stigo:matrix.org
https://metacpan.org/dist/Software-License/source/lib/Software/License/Perl_5.pm
That module has conflicting info as it depends on Software::License::GPL_1 rather than Software::License::GPL_1::or_later
14:00:50
@stigo:matrix.orgstigoI guess LICENSE section here will be the correct one, not sure about the dependency tree for Software::License:. https://metacpan.org/release/RJBS/perl-5.36.0/source/README14:02:24
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dethanks, that's probably the best source available14:02:49
@stigo:matrix.orgstigoThat covers the majority of perl modules as they defer the licence to what perl is using.14:03:24
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deyeah I saw the license is just called perl-514:03:39
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de * yeah I saw the license is just called perl_514:03:41
@stigo:matrix.orgstigo... sometimes :D14:03:47
@stigo:matrix.orgstigo The licence mapping just just copied from maintainers/scripts/nix-generate-from-cpan.pl 14:05:27
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.defound a bug in nix-update-cpan :/14:05:59
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de it calls the constant-defer library defer when I do --list-nix-file 14:06:14
@stigo:matrix.orgstigooh14:06:52
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
@@ -119,7 +119,7 @@ sub parse_nix_file($nix_file, $cb=undef) { # Parses a perl-packages.nix file
     my $nix = Mojo::File->new($nix_file)->slurp;

     my (@ret);
-    while ($nix =~ m/((\w+)\s+=\s+buildPerl(Package|Module)\s+(?:rec)?\s*)
+    while ($nix =~ m/(([^\s]+)\s+=\s+buildPerl(Package|Module)\s+(?:rec)?\s*)
                      ($RE{balanced}{-parens=>'{}'})/gx) {
         my ($prepart, $attrname, $build_fun, $part) = ($1, $2, $3, $4);
         if ($cb) {
14:07:58
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.denot sure if that is too open though14:08:02
@stigo:matrix.orgstigo
14:08:15
@stigo:matrix.orgstigo *
@@ -118,7 +118,7 @@ sub parse_nix_file($nix_file, $cb=undef) { # Parses a perl-packages.nix file
     my $nix = Mojo::File->new($nix_file)->slurp;
 
     my (@ret);
-    while ($nix =~ m/((\w+)\s+=\s+buildPerl(Package|Module)\s+(?:rec)?\s*)
+    while ($nix =~ m/(([\w-]+)\s+=\s+buildPerl(Package|Module)\s+(?:rec)?\s*)
                      ($RE{balanced}{-parens=>'{}'})/gx) {
         my ($prepart, $attrname, $build_fun, $part) = ($1, $2, $3, $4);
         if ($cb) {

14:08:20
@stigo:matrix.orgstigo \w is probably too open too 14:08:43
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deyeah your whitelist approach is probably better than my blacklist approach14:08:44
@stigo:matrix.orgstigoallowlist you mean? :)14:08:54
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @stigo:matrix.org
\w is probably too open too
okay what is an identifier :/
14:08:58
@stigo:matrix.orgstigo[A-Za-z0-9_-] is probably better14:09:20
@stigo:matrix.orgstigoprefer being explicit when matching stuff14:09:34
@stigo:matrix.orgstigobut would be nicer to get the code from nix itself i think14:09:53

Show newer messages


Back to Room ListRoom Version: 9