2021-01-14 11:37:20 +00:00
|
|
|
{ stdenv, lib, makeWrapper, perl, perlPackages }:
|
2013-06-13 13:39:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-05-15 20:49:16 +00:00
|
|
|
name = "nix-generate-from-cpan-3";
|
2013-06-13 13:39:08 +00:00
|
|
|
|
2015-10-30 00:04:31 +00:00
|
|
|
buildInputs = with perlPackages; [
|
2018-12-14 15:40:36 +00:00
|
|
|
makeWrapper perl GetoptLongDescriptive CPANPLUS Readonly LogLog4perl
|
2015-10-30 00:04:31 +00:00
|
|
|
];
|
2013-06-13 13:39:08 +00:00
|
|
|
|
2015-10-30 00:04:31 +00:00
|
|
|
phases = [ "installPhase" ];
|
2013-06-13 13:39:08 +00:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${./nix-generate-from-cpan.pl} $out/bin/nix-generate-from-cpan
|
2015-10-30 00:04:31 +00:00
|
|
|
patchShebangs $out/bin/nix-generate-from-cpan
|
2013-06-13 13:39:08 +00:00
|
|
|
wrapProgram $out/bin/nix-generate-from-cpan --set PERL5LIB $PERL5LIB
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2021-04-18 07:00:18 +00:00
|
|
|
maintainers = with lib.maintainers; [ eelco ];
|
2013-06-13 13:39:08 +00:00
|
|
|
description = "Utility to generate a Nix expression for a Perl package from CPAN";
|
2021-01-14 11:37:20 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2013-06-13 13:39:08 +00:00
|
|
|
};
|
2014-11-24 23:28:20 +00:00
|
|
|
}
|