mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 03:53:41 +00:00
27 lines
823 B
Nix
27 lines
823 B
Nix
{stdenv, fetchurl, openssl, bison, flex, pam, zlib, usePAM ? stdenv.isLinux }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "monit-5.23.0";
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}dist/${name}.tar.gz";
|
|
sha256 = "04v7sp2vc1q6h8c5j8h4izffn9d97cdj0k64m4ml00lw6wxgwffx";
|
|
};
|
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
buildInputs = [ openssl zlib.dev ] ++ stdenv.lib.optionals usePAM [ pam ];
|
|
|
|
configureFlags = [
|
|
"--with-ssl-incl-dir=${openssl.dev}/include"
|
|
"--with-ssl-lib-dir=${openssl.out}/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 ];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|