2013-06-13 14:39:08 +01:00
|
|
|
{ stdenv, makeWrapper, perl, perlPackages }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-05-15 21:49:16 +01:00
|
|
|
name = "nix-generate-from-cpan-3";
|
2013-06-13 14:39:08 +01:00
|
|
|
|
2015-10-30 00:04:31 +00:00
|
|
|
buildInputs = with perlPackages; [
|
|
|
|
makeWrapper perl CPANMeta GetoptLongDescriptive CPANPLUS Readonly Log4Perl
|
|
|
|
];
|
2013-06-13 14:39:08 +01:00
|
|
|
|
2015-10-30 00:04:31 +00:00
|
|
|
phases = [ "installPhase" ];
|
2013-06-13 14:39:08 +01: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 14:39:08 +01:00
|
|
|
wrapProgram $out/bin/nix-generate-from-cpan --set PERL5LIB $PERL5LIB
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2015-10-30 00:04:31 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ eelco rycee ];
|
2013-06-13 14:39:08 +01:00
|
|
|
description = "Utility to generate a Nix expression for a Perl package from CPAN";
|
2016-05-15 21:49:16 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-06-13 14:39:08 +01:00
|
|
|
};
|
2014-11-24 23:28:20 +00:00
|
|
|
}
|