8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
25 lines
722 B
Nix
25 lines
722 B
Nix
{ stdenv, makeWrapper, perl, perlPackages }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nix-generate-from-cpan-3";
|
|
|
|
buildInputs = with perlPackages; [
|
|
makeWrapper perl GetoptLongDescriptive CPANPLUS Readonly LogLog4perl
|
|
];
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase =
|
|
''
|
|
mkdir -p $out/bin
|
|
cp ${./nix-generate-from-cpan.pl} $out/bin/nix-generate-from-cpan
|
|
patchShebangs $out/bin/nix-generate-from-cpan
|
|
wrapProgram $out/bin/nix-generate-from-cpan --set PERL5LIB $PERL5LIB
|
|
'';
|
|
|
|
meta = {
|
|
maintainers = with stdenv.lib.maintainers; [ eelco rycee ];
|
|
description = "Utility to generate a Nix expression for a Perl package from CPAN";
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|