2021-01-14 11:37:20 +00:00
|
|
|
{ stdenv, lib, makeWrapper, perl, perlPackages }:
|
2013-06-13 13:39:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-05-15 20:49:16 +00:00
|
|
|
name = "nix-generate-from-cpan-3";
|
2013-06-13 13:39:08 +00:00
|
|
|
|
2022-09-24 21:28:38 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2015-10-30 00:04:31 +00:00
|
|
|
buildInputs = with perlPackages; [
|
2022-09-24 21:28:38 +00:00
|
|
|
perl GetoptLongDescriptive CPANPLUS Readonly LogLog4perl
|
2015-10-30 00:04:31 +00:00
|
|
|
];
|
2013-06-13 13:39:08 +00:00
|
|
|
|
2023-01-12 22:06:16 +00:00
|
|
|
dontUnpack = true;
|
2013-06-13 13:39:08 +00:00
|
|
|
|
2023-01-12 22:06:16 +00:00
|
|
|
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
|
|
|
|
'';
|
2013-06-13 13:39:08 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-04-18 07:00:18 +00:00
|
|
|
maintainers = with lib.maintainers; [ eelco ];
|
2013-06-13 13:39:08 +00:00
|
|
|
description = "Utility to generate a Nix expression for a Perl package from CPAN";
|
2021-01-14 11:37:20 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2013-06-13 13:39:08 +00:00
|
|
|
};
|
2014-11-24 23:28:20 +00:00
|
|
|
}
|