diff options
author | volth <volth@volth.com> | 2018-12-15 03:50:31 +0000 |
---|---|---|
committer | volth <volth@volth.com> | 2018-12-15 03:50:31 +0000 |
commit | bb9557eb7ca623ac9c12bae1fe4f95c9e290d27d (patch) | |
tree | c4f1c253bf8cf5fe17612039d2a27acbdacef253 /pkgs/development | |
parent | 921d046537f6d7f0fc0db07b7aa46be7e9df030b (diff) |
lib.makePerlPath -> perlPackages.makePerlPath
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/hivex/default.nix | 7 | ||||
-rw-r--r-- | pkgs/development/libraries/libguestfs/default.nix | 15 | ||||
-rw-r--r-- | pkgs/development/perl-modules/DBD-SQLite/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/tools/misc/creduce/default.nix | 5 | ||||
-rw-r--r-- | pkgs/development/tools/misc/csmith/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/tools/misc/help2man/default.nix | 9 | ||||
-rw-r--r-- | pkgs/development/tools/misc/icon-naming-utils/default.nix | 6 | ||||
-rw-r--r-- | pkgs/development/tools/sslmate/default.nix | 6 | ||||
-rw-r--r-- | pkgs/development/web/wml/default.nix | 4 |
9 files changed, 29 insertions, 31 deletions
diff --git a/pkgs/development/libraries/hivex/default.nix b/pkgs/development/libraries/hivex/default.nix index b2e2dbd35a403..740d2d3244dfb 100644 --- a/pkgs/development/libraries/hivex/default.nix +++ b/pkgs/development/libraries/hivex/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper -, perl, libxml2, IOStringy }: +, perlPackages, libxml2 }: stdenv.mkDerivation rec { name = "hivex-${version}"; @@ -14,9 +14,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ - autoreconfHook makeWrapper - perl libxml2 IOStringy - ]; + autoreconfHook makeWrapper libxml2 + ] ++ (with perlPackages; [ perl IOStringy ]); postInstall = '' for bin in $out/bin/*; do diff --git a/pkgs/development/libraries/libguestfs/default.nix b/pkgs/development/libraries/libguestfs/default.nix index aad6365e4c2d9..4e43ef91e79fa 100644 --- a/pkgs/development/libraries/libguestfs/default.nix +++ b/pkgs/development/libraries/libguestfs/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper -, ncurses, cpio, gperf, perl, cdrkit, flex, bison, qemu, pcre, augeas, libxml2 +, ncurses, cpio, gperf, cdrkit, flex, bison, qemu, pcre, augeas, libxml2 , acl, libcap, libcap_ng, libconfig, systemd, fuse, yajl, libvirt, hivex -, gmp, readline, file, libintl_perl, GetoptLong, SysVirt, numactl, xen, libapparmor +, gmp, readline, file, numactl, xen, libapparmor , getopt, perlPackages, ocamlPackages , appliance ? null , javaSupport ? false, jdk ? null }: @@ -20,11 +20,12 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ - makeWrapper autoreconfHook ncurses cpio gperf perl + makeWrapper autoreconfHook ncurses cpio gperf cdrkit flex bison qemu pcre augeas libxml2 acl libcap libcap_ng libconfig - systemd fuse yajl libvirt gmp readline file hivex libintl_perl GetoptLong - SysVirt numactl xen libapparmor getopt perlPackages.ModuleBuild - ] ++ (with ocamlPackages; [ ocaml findlib ocamlbuild ocaml_libvirt ocaml_gettext ounit ]) + systemd fuse yajl libvirt gmp readline file hivex + numactl xen libapparmor getopt perlPackages.ModuleBuild + ] ++ (with perlPackages; [ perl libintl_perl GetoptLong SysVirt ]) + ++ (with ocamlPackages; [ ocaml findlib ocamlbuild ocaml_libvirt ocaml_gettext ounit ]) ++ stdenv.lib.optional javaSupport jdk; prePatch = '' @@ -52,7 +53,7 @@ stdenv.mkDerivation rec { for bin in $out/bin/*; do wrapProgram "$bin" \ --prefix PATH : "$out/bin:${hivex}/bin:${qemu}/bin" \ - --prefix PERL5LIB : "$out/lib/perl5/site_perl" + --prefix PERL5LIB : "$out/${perlPackages.perl.libPrefix}" done ''; diff --git a/pkgs/development/perl-modules/DBD-SQLite/default.nix b/pkgs/development/perl-modules/DBD-SQLite/default.nix index 5b6990810b395..98d98266db17c 100644 --- a/pkgs/development/perl-modules/DBD-SQLite/default.nix +++ b/pkgs/development/perl-modules/DBD-SQLite/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, buildPerlPackage, DBI, sqlite }: +{ stdenv, fetchurl, buildPerlPackage, perl, DBI, sqlite }: buildPerlPackage rec { name = "DBD-SQLite-1.58"; @@ -20,7 +20,7 @@ buildPerlPackage rec { postInstall = '' # Get rid of a pointless copy of the SQLite sources. - rm -rf $out/lib/perl5/site_perl/*/*/auto/share + rm -rf $out/${perl.libPrefix}/*/*/auto/share ''; meta = with stdenv.lib; { diff --git a/pkgs/development/tools/misc/creduce/default.nix b/pkgs/development/tools/misc/creduce/default.nix index 66f1fff419021..a2b487a4bccef 100644 --- a/pkgs/development/tools/misc/creduce/default.nix +++ b/pkgs/development/tools/misc/creduce/default.nix @@ -2,7 +2,7 @@ , llvm, clang-unwrapped , flex , zlib -, perl, ExporterLite, FileWhich, GetoptTabular, RegexpCommon, TermReadKey +, perlPackages , utillinux }: @@ -22,8 +22,7 @@ stdenv.mkDerivation rec { # Actual deps: llvm clang-unwrapped flex zlib - perl ExporterLite FileWhich GetoptTabular RegexpCommon TermReadKey - ]; + ] ++ (with perlPackages; [ perl ExporterLite FileWhich GetoptTabular RegexpCommon TermReadKey ]); # On Linux, c-reduce's preferred way to reason about # the cpu architecture/topology is to use 'lscpu', diff --git a/pkgs/development/tools/misc/csmith/default.nix b/pkgs/development/tools/misc/csmith/default.nix index a0040e4ed3e50..eff1af8cdb47a 100644 --- a/pkgs/development/tools/misc/csmith/default.nix +++ b/pkgs/development/tools/misc/csmith/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, m4, makeWrapper, libbsd, perl, SysCPU }: +{ stdenv, fetchurl, m4, makeWrapper, libbsd, perlPackages }: stdenv.mkDerivation rec { name = "csmith-${version}"; @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ m4 makeWrapper ]; - buildInputs = [ perl SysCPU libbsd ]; + buildInputs = [ libbsd ] ++ (with perlPackages; [ perl SysCPU ]); postInstall = '' substituteInPlace $out/bin/compiler_test.pl \ diff --git a/pkgs/development/tools/misc/help2man/default.nix b/pkgs/development/tools/misc/help2man/default.nix index ca48af6419685..29ed23117fba0 100644 --- a/pkgs/development/tools/misc/help2man/default.nix +++ b/pkgs/development/tools/misc/help2man/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, perl, gettext, LocaleGettext }: +{ stdenv, fetchurl, perlPackages, gettext }: stdenv.mkDerivation rec { name = "help2man-1.47.8"; @@ -8,8 +8,8 @@ stdenv.mkDerivation rec { sha256 = "1p5830h88cx0zn0snwaj0vpph81xicpsirfwlxmcgjrlmn0nm3sj"; }; - nativeBuildInputs = [ gettext LocaleGettext ]; - buildInputs = [ perl LocaleGettext ]; + nativeBuildInputs = [ gettext perlPackages.LocaleGettext ]; + buildInputs = [ perlPackages.perl perlPackages.LocaleGettext ]; doCheck = false; # target `check' is missing @@ -18,11 +18,10 @@ stdenv.mkDerivation rec { # We don't use makeWrapper here because it uses substitutions our # bootstrap shell can't handle. postInstall = '' - gettext_perl="$(echo ${LocaleGettext}/lib/perl*/site_perl)" mv $out/bin/help2man $out/bin/.help2man-wrapped cat > $out/bin/help2man <<EOF #! $SHELL -e - export PERL5LIB=\''${PERL5LIB:+:}$gettext_perl + export PERL5LIB=\''${PERL5LIB:+:}${perlPackages.LocaleGettext}/${perlPackages.perl.libPrefix} ${stdenv.lib.optionalString stdenv.hostPlatform.isCygwin ''export PATH=\''${PATH:+:}${gettext}/bin''} exec -a \$0 $out/bin/.help2man-wrapped "\$@" diff --git a/pkgs/development/tools/misc/icon-naming-utils/default.nix b/pkgs/development/tools/misc/icon-naming-utils/default.nix index 5fd0fe8be2f29..d7b2cd36492e2 100644 --- a/pkgs/development/tools/misc/icon-naming-utils/default.nix +++ b/pkgs/development/tools/misc/icon-naming-utils/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, perl, XMLSimple, librsvg}: +{stdenv, fetchurl, perlPackages, librsvg}: stdenv.mkDerivation rec { name = "icon-naming-utils-0.8.90"; @@ -8,13 +8,13 @@ stdenv.mkDerivation rec { sha256 = "071fj2jm5kydlz02ic5sylhmw6h2p3cgrm3gwdfabinqkqcv4jh4"; }; - buildInputs = [perl XMLSimple librsvg]; + buildInputs = [ librsvg ] ++ (with perlPackages; [ perl XMLSimple ]); postInstall = '' # Add XML::Simple to the runtime search path. substituteInPlace $out/libexec/icon-name-mapping \ - --replace '/bin/perl' '/bin/perl -I${XMLSimple}/lib/perl5/site_perl' + --replace '/bin/perl' '/bin/perl -I${perlPackages.XMLSimple}/${perlPackages.perl.libPrefix}' ''; meta = with stdenv.lib; { diff --git a/pkgs/development/tools/sslmate/default.nix b/pkgs/development/tools/sslmate/default.nix index 9261b892cca50..8683c75a696d5 100644 --- a/pkgs/development/tools/sslmate/default.nix +++ b/pkgs/development/tools/sslmate/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, perlPackages, perl, makeWrapper, openssl }: +{ stdenv, fetchurl, perlPackages, makeWrapper, openssl }: stdenv.mkDerivation rec { name = "sslmate-1.7.0"; @@ -10,11 +10,11 @@ stdenv.mkDerivation rec { makeFlags = "PREFIX=$(out)"; - buildInputs = [ perl makeWrapper ]; + buildInputs = [ perlPackages.perl makeWrapper ]; postInstall = '' wrapProgram $out/bin/sslmate --prefix PERL5LIB : \ - "${with perlPackages; stdenv.lib.makePerlPath [ + "${with perlPackages; makePerlPath [ URI JSONPP TermReadKey diff --git a/pkgs/development/web/wml/default.nix b/pkgs/development/web/wml/default.nix index 58336c80e04f9..44ce36b76ddc2 100644 --- a/pkgs/development/web/wml/default.nix +++ b/pkgs/development/web/wml/default.nix @@ -22,7 +22,7 @@ perlPackages.buildPerlPackage rec { sed -i '/p2_mp4h\/doc/d' Makefile.in ''; - buildInputs = with perlPackages; + buildInputs = with perlPackages; [ perl TermReadKey GD BitVector ncurses lynx makeWrapper ImageSize ]; patches = [ ./redhat-with-thr.patch ./dynaloader.patch ./no_bitvector.patch ]; @@ -45,7 +45,7 @@ perlPackages.buildPerlPackage rec { preFixup = '' wrapProgram $out/bin/wml \ - --set PERL5LIB ${with perlPackages; stdenv.lib.makePerlPath [ + --set PERL5LIB ${with perlPackages; makePerlPath [ BitVector TermReadKey ImageSize ]} ''; |