about summary refs log tree commit diff
path: root/maintainers/scripts/nix-generate-from-cpan.nix
AgeCommit message (Collapse)AuthorFilesLines
2016-05-18nix-generate-from-cpan: fix core module detectionRobert Helgesson1-1/+2
This makes the detection of core modules a bit more robust by checking the module inclusion in a pure Perl interpreter. This ensures that any extra path in the `nix-generate-from-cpan` script's `PERL5LIB` does not affect the generated package expression.
2016-01-23nix-generate-from-cpan: large refactorRobert Helgesson1-5/+7
This commit includes a substantial refactoring of `nix-generate-from-cpan`. This somewhat simplifies the code through the use of the CPAN::Meta module while adding the following features: - The program now takes an optional maintainer on the command line that is subsequently added into the generated package. - An attempt is made to convert the license specified inside the META.json or META.yaml file to a license in `stdenv.lib.licenses`. - An attempt is made to disambiguate attribute names of packages whose name is a reserved word in Nix. - Write logging output using Log::Log4perl. - Print module RSS feed URL. The RSS feed, hosted by MetaCPAN, can be used to track updates to the module.
2014-11-25Fix various Perl packagesEelco Dolstra1-2/+2
Perl 5.20 removed some modules, in particular Module::Pluggable. So now other modules need to get it from CPAN. http://hydra.nixos.org/build/17450281
2013-06-16nix-generate-from-cpan: Hack to handle non-UTF-8 META.yml filesEelco Dolstra1-1/+1
2013-06-13Rewrite the CPAN generator to PerlEelco Dolstra1-0/+22
Also: - It's now installable by doing "nix-env -i nix-generate-from-cpan". - It maps dependencies to the correct attribute (e.g. HTML::HeadParser is mapped to HTMLParser). - It automatically selects buildPerlPackage or buildPerlModule. - It's documented in the manual.