logcheck: modernize
This commit is contained in:
@@ -6,24 +6,23 @@
|
||||
perlPackages,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "logcheck";
|
||||
version = "1.4.7";
|
||||
_name = "logcheck_${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://debian/pool/main/l/logcheck/${_name}.tar.xz";
|
||||
sha256 = "sha256-zBYMvKwo85OI6LluRixOYtAFRTtpV/Hw6qjAk/+c898=";
|
||||
url = "mirror://debian/pool/main/l/logcheck/logcheck_${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-zBYMvKwo85OI6LluRixOYtAFRTtpV/Hw6qjAk/+c898=";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
# do not set sticky bit in nix store.
|
||||
substituteInPlace Makefile --replace 2750 0750
|
||||
substituteInPlace Makefile --replace-fail 2750 0750
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace src/logtail --replace "/usr/bin/perl" "${perlPackages.perl}/bin/perl"
|
||||
substituteInPlace src/logtail2 --replace "/usr/bin/perl" "${perlPackages.perl}/bin/perl"
|
||||
substituteInPlace src/logtail --replace-fail "/usr/bin/perl" "${perlPackages.perl}/bin/perl"
|
||||
substituteInPlace src/logtail2 --replace-fail "/usr/bin/perl" "${perlPackages.perl}/bin/perl"
|
||||
|
||||
sed -i -e 's|! -f /usr/bin/lockfile|! -f ${lockfile-progs}/bin/lockfile|' \
|
||||
-e 's|^\([ \t]*\)lockfile-|\1${lockfile-progs}/bin/lockfile-|' \
|
||||
@@ -50,4 +49,4 @@ stdenv.mkDerivation rec {
|
||||
homepage = "https://salsa.debian.org/debian/logcheck";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user