You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
735 B
28 lines
735 B
3 years ago
|
{ stdenv, lib, makeWrapper, perl, perlPackages }:
|
||
11 years ago
|
|
||
|
stdenv.mkDerivation {
|
||
8 years ago
|
name = "nix-generate-from-cpan-3";
|
||
11 years ago
|
|
||
2 years ago
|
nativeBuildInputs = [ makeWrapper ];
|
||
|
|
||
9 years ago
|
buildInputs = with perlPackages; [
|
||
2 years ago
|
perl GetoptLongDescriptive CPANPLUS Readonly LogLog4perl
|
||
9 years ago
|
];
|
||
11 years ago
|
|
||
9 years ago
|
phases = [ "installPhase" ];
|
||
11 years ago
|
|
||
|
installPhase =
|
||
|
''
|
||
|
mkdir -p $out/bin
|
||
|
cp ${./nix-generate-from-cpan.pl} $out/bin/nix-generate-from-cpan
|
||
9 years ago
|
patchShebangs $out/bin/nix-generate-from-cpan
|
||
11 years ago
|
wrapProgram $out/bin/nix-generate-from-cpan --set PERL5LIB $PERL5LIB
|
||
|
'';
|
||
|
|
||
|
meta = {
|
||
3 years ago
|
maintainers = with lib.maintainers; [ eelco ];
|
||
11 years ago
|
description = "Utility to generate a Nix expression for a Perl package from CPAN";
|
||
3 years ago
|
platforms = lib.platforms.unix;
|
||
11 years ago
|
};
|
||
10 years ago
|
}
|