lib.makePerlPath -> perlPackages.makePerlPath

This commit is contained in:
volth
2018-12-15 03:50:31 +00:00
parent 921d046537
commit bb9557eb7c
81 changed files with 313 additions and 427 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, lockfileProgs, perl, mimeConstruct }:
{ stdenv, fetchurl, lockfileProgs, perlPackages }:
stdenv.mkDerivation rec {
name = "logcheck-${version}";
@@ -16,13 +16,13 @@ stdenv.mkDerivation rec {
'';
preConfigure = ''
substituteInPlace src/logtail --replace "/usr/bin/perl" "${perl}/bin/perl"
substituteInPlace src/logtail2 --replace "/usr/bin/perl" "${perl}/bin/perl"
substituteInPlace src/logtail --replace "/usr/bin/perl" "${perlPackages.perl}/bin/perl"
substituteInPlace src/logtail2 --replace "/usr/bin/perl" "${perlPackages.perl}/bin/perl"
sed -i -e 's|! -f /usr/bin/lockfile|! -f ${lockfileProgs}/bin/lockfile|' \
-e 's|^\([ \t]*\)lockfile-|\1${lockfileProgs}/bin/lockfile-|' \
-e "s|/usr/sbin/logtail2|$out/sbin/logtail2|" \
-e 's|mime-construct|${mimeConstruct}/bin/mime-construct|' \
-e 's|mime-construct|${perlPackages.mimeConstruct}/bin/mime-construct|' \
-e 's|\$(run-parts --list "\$dir")|"$dir"/*|' src/logcheck
'';
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
"SBINDIR=sbin"
"BINDIR=bin"
"SHAREDIR=share/logtail/detectrotate"
];
];
meta = with stdenv.lib; {
description = "Mails anomalies in the system logfiles to the administrator";
@@ -44,6 +44,5 @@ stdenv.mkDerivation rec {
homepage = http://logcheck.alioth.debian.org/;
license = licenses.gpl2;
maintainers = [ maintainers.bluescreen303 ];
};
}