nixpkgs-suyu/pkgs/tools/system/monit/default.nix

26 lines
758 B
Nix
Raw Normal View History

{stdenv, fetchurl, openssl, bison, flex, pam, usePAM ? stdenv.isLinux }:
stdenv.mkDerivation rec {
2014-11-03 13:27:52 +01:00
name = "monit-5.10";
src = fetchurl {
url = "${meta.homepage}dist/${name}.tar.gz";
2014-11-03 13:27:52 +01:00
sha256 = "0lwlils6b59kr6zg328q113c7mrpggqydpq4l6j52sqv3dd1b49p";
};
nativeBuildInputs = [ bison flex ];
buildInputs = [ openssl ] ++ stdenv.lib.optionals usePAM [ pam ];
2014-05-09 22:47:45 +02:00
configureFlags = [
"--with-ssl-incl-dir=${openssl.dev}/include"
"--with-ssl-lib-dir=${openssl.out}/lib"
2014-05-09 22:47:45 +02:00
] ++ stdenv.lib.optionals (! usePAM) [ "--without-pam" ];
meta = {
homepage = http://mmonit.com/monit/;
description = "Monitoring system";
license = stdenv.lib.licenses.agpl3;
maintainers = with stdenv.lib.maintainers; [ raskin wmertens ];
};
}