cd1dd31772
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/monit/versions. These checks were done: - built on NixOS - /nix/store/mh4qnd2ljfha67cv20lvkiyxr1cj0ar7-monit-5.25.2/bin/monit passed the binary check. - 1 of 1 passed binary check by having a zero exit code. - 0 of 1 passed binary check by having the new version present in output. - found 5.25.2 with grep in /nix/store/mh4qnd2ljfha67cv20lvkiyxr1cj0ar7-monit-5.25.2 - directory tree listing: https://gist.github.com/510e765f79571ddc4c2542c69dffc6f3 - du listing: https://gist.github.com/31af9a371bca965d4d606614e84025d4
36 lines
1.2 KiB
Nix
36 lines
1.2 KiB
Nix
{stdenv, fetchurl, openssl, bison, flex, pam, zlib, usePAM ? stdenv.isLinux
|
|
, buildPlatform, hostPlatform }:
|
|
let useSSL = (openssl != null);
|
|
isCross = ( buildPlatform != hostPlatform ) ; in
|
|
stdenv.mkDerivation rec {
|
|
name = "monit-5.25.2";
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}dist/${name}.tar.gz";
|
|
sha256 = "0jn6mdsh50zd3jc61hr1y8sd80r01gqcyvd860zf8m8i3lvfc35a";
|
|
};
|
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
buildInputs = [ zlib.dev ] ++
|
|
stdenv.lib.optionals useSSL [ openssl ] ++
|
|
stdenv.lib.optionals usePAM [ pam ];
|
|
|
|
configureFlags =
|
|
if useSSL then [
|
|
"--with-ssl-incl-dir=${openssl.dev}/include"
|
|
"--with-ssl-lib-dir=${openssl.out}/lib"
|
|
] else [ "--without-ssl" ] ++
|
|
stdenv.lib.optionals (! usePAM) [ "--without-pam" ] ++
|
|
# will need to check both these are true for musl
|
|
stdenv.lib.optionals isCross [ "libmonit_cv_setjmp_available=yes"
|
|
"libmonit_cv_vsnprintf_c99_conformant=yes"];
|
|
|
|
meta = {
|
|
homepage = http://mmonit.com/monit/;
|
|
description = "Monitoring system";
|
|
license = stdenv.lib.licenses.agpl3;
|
|
maintainers = with stdenv.lib.maintainers; [ raskin wmertens ];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|