2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, makeWrapper, perl, perlPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "nix-generate-from-cpan-3";
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = with perlPackages; [
|
2022-10-21 18:38:19 +00:00
|
|
|
perl GetoptLongDescriptive CPANPLUS Readonly LogLog4perl
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 = {
|
2021-04-19 03:05:28 +00:00
|
|
|
maintainers = with lib.maintainers; [ eelco ];
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Utility to generate a Nix expression for a Perl package from CPAN";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|