mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
6910a4eea0
this should be all of them other than the failed splices found with nixpkgs-lint
27 lines
735 B
Nix
27 lines
735 B
Nix
{ stdenv, lib, makeWrapper, perl, perlPackages }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nix-generate-from-cpan-3";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = with perlPackages; [
|
|
perl GetoptLongDescriptive CPANPLUS Readonly LogLog4perl
|
|
];
|
|
|
|
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 = {
|
|
maintainers = with lib.maintainers; [ eelco ];
|
|
description = "Utility to generate a Nix expression for a Perl package from CPAN";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|