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
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
dontUnpack = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +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
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nix-generate-from-cpan";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|