nix-generate-from-cpan: strip leading v from versions
Everything currently in perl-packages.nix already does this, so we might as well automate it.
This commit is contained in:
parent
838902a82c
commit
ac1fbe68bb
@ -226,7 +226,7 @@ sub pkg_to_attr {
|
|||||||
|
|
||||||
sub get_pkg_name {
|
sub get_pkg_name {
|
||||||
my ($module) = @_;
|
my ($module) = @_;
|
||||||
return ( $module->package_name, $module->package_version );
|
return ( $module->package_name, $module->package_version =~ s/^v(\d)/$1/r );
|
||||||
}
|
}
|
||||||
|
|
||||||
sub read_meta {
|
sub read_meta {
|
||||||
|
Loading…
Reference in New Issue
Block a user