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