mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
22 lines
596 B
Nix
22 lines
596 B
Nix
{ stdenv, makeWrapper, perl, perlPackages }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nix-generate-from-cpan-1";
|
|
|
|
buildInputs = [ makeWrapper perl perlPackages.YAMLLibYAML perlPackages.JSON ];
|
|
|
|
unpackPhase = "true";
|
|
buildPhase = "true";
|
|
|
|
installPhase =
|
|
''
|
|
mkdir -p $out/bin
|
|
cp ${./nix-generate-from-cpan.pl} $out/bin/nix-generate-from-cpan
|
|
wrapProgram $out/bin/nix-generate-from-cpan --set PERL5LIB $PERL5LIB
|
|
'';
|
|
|
|
meta = {
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
description = "Utility to generate a Nix expression for a Perl package from CPAN";
|
|
};
|
|
} |