summary refs log tree commit diff
path: root/pkgs/tools/text/namazu
diff options
context:
space:
mode:
authorvolth <volth@volth.com>2018-12-15 03:50:31 +0000
committervolth <volth@volth.com>2018-12-15 03:50:31 +0000
commitbb9557eb7ca623ac9c12bae1fe4f95c9e290d27d (patch)
treec4f1c253bf8cf5fe17612039d2a27acbdacef253 /pkgs/tools/text/namazu
parent921d046537f6d7f0fc0db07b7aa46be7e9df030b (diff)
downloadnixpkgs-bb9557eb7ca623ac9c12bae1fe4f95c9e290d27d.tar
nixpkgs-bb9557eb7ca623ac9c12bae1fe4f95c9e290d27d.tar.gz
nixpkgs-bb9557eb7ca623ac9c12bae1fe4f95c9e290d27d.tar.bz2
nixpkgs-bb9557eb7ca623ac9c12bae1fe4f95c9e290d27d.tar.lz
nixpkgs-bb9557eb7ca623ac9c12bae1fe4f95c9e290d27d.tar.xz
nixpkgs-bb9557eb7ca623ac9c12bae1fe4f95c9e290d27d.tar.zst
nixpkgs-bb9557eb7ca623ac9c12bae1fe4f95c9e290d27d.zip
lib.makePerlPath -> perlPackages.makePerlPath
Diffstat (limited to 'pkgs/tools/text/namazu')
-rw-r--r--pkgs/tools/text/namazu/default.nix11
1 files changed, 5 insertions, 6 deletions
diff --git a/pkgs/tools/text/namazu/default.nix b/pkgs/tools/text/namazu/default.nix
index 67a26cb41aa..59cfc86efbf 100644
--- a/pkgs/tools/text/namazu/default.nix
+++ b/pkgs/tools/text/namazu/default.nix
@@ -11,14 +11,13 @@ stdenv.mkDerivation rec {
   buildInputs = [ perl ];
 
   # First install the `File::MMagic' Perl module.
-  # !!! this shouldn't refer to Perl 5.10.0!
   preConfigure = ''
-    ( cd File-MMagic &&				\
-      perl Makefile.PL				\
-        LIB="$out/lib/perl5/site_perl/5.10.0"	\
-        INSTALLSITEMAN3DIR="$out/man" &&	\
+    ( cd File-MMagic &&                              \
+      perl Makefile.PL                               \
+        LIB="$out/${perl.libPrefix}/${perl.version}" \
+        INSTALLSITEMAN3DIR="$out/man" &&             \
       make && make install )
-    export PERL5LIB="$out/lib/perl5/site_perl/5.10.0:$PERL5LIB"
+    export PERL5LIB="$out/${perl.libPrefix}/${perl.version}:$PERL5LIB"
   '';
 
   # FIXME: The `tests/namazu-6' test fails on GNU/Linux, presumably because