perl: add .withPackages

This commit is contained in:
volth
2019-04-09 14:49:47 +00:00
parent 68f7f25706
commit 03eaa480bd
5 changed files with 103 additions and 21 deletions

View File

@@ -1,8 +1,8 @@
{ lib, stdenv, perl, buildPackages }:
{ lib, stdenv, perl, buildPackages, toPerlModule }:
{ nativeBuildInputs ? [], name, ... } @ attrs:
stdenv.mkDerivation (
toPerlModule(stdenv.mkDerivation (
(
lib.recursiveUpdate
{
@@ -39,4 +39,4 @@ stdenv.mkDerivation (
nativeBuildInputs = nativeBuildInputs ++ [ (perl.dev or perl) ];
perl = buildPackages.perl;
}
)
))