1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00
nixpkgs/pkgs/tools/system/monit/default.nix
Michael Raskin 04635a87eb Update monit
2014-11-03 16:54:38 +03:00

26 lines
750 B
Nix

{stdenv, fetchurl, openssl, bison, flex, pam, usePAM ? stdenv.isLinux }:
stdenv.mkDerivation rec {
name = "monit-5.10";
src = fetchurl {
url = "${meta.homepage}dist/${name}.tar.gz";
sha256 = "0lwlils6b59kr6zg328q113c7mrpggqydpq4l6j52sqv3dd1b49p";
};
nativeBuildInputs = [ bison flex ];
buildInputs = [ openssl ] ++ stdenv.lib.optionals usePAM [ pam ];
configureFlags = [
"--with-ssl-incl-dir=${openssl}/include"
"--with-ssl-lib-dir=${openssl}/lib"
] ++ 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 ];
};
}