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