2013-06-13 14:39:08 +01:00
|
|
|
{ stdenv, makeWrapper, perl, perlPackages }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "nix-generate-from-cpan-1";
|
|
|
|
|
2013-06-16 17:34:32 +01:00
|
|
|
buildInputs = [ makeWrapper perl perlPackages.YAMLLibYAML perlPackages.JSON ];
|
2013-06-13 14:39:08 +01:00
|
|
|
|
|
|
|
unpackPhase = "true";
|
|
|
|
buildPhase = "true";
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${./nix-generate-from-cpan.pl} $out/bin/nix-generate-from-cpan
|
|
|
|
wrapProgram $out/bin/nix-generate-from-cpan --set PERL5LIB $PERL5LIB
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
|
|
description = "Utility to generate a Nix expression for a Perl package from CPAN";
|
|
|
|
};
|
|
|
|
}
|