6ab576b702
- Use callPackage etc - Make PAM optional
22 lines
654 B
Nix
22 lines
654 B
Nix
{stdenv, fetchurl, openssl, bison, flex, pam, usePAM ? stdenv.isLinux }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "monit-5.8";
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}dist/${name}.tar.gz";
|
|
sha256 = "1xa7i29ma81jjxac0qc29wcxxvbv58n3jbwmllscamh1phz5f00c";
|
|
};
|
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
buildInputs = [ openssl ] ++ stdenv.lib.optionals usePAM [ pam ];
|
|
|
|
configureFlags = stdenv.lib.optionals (! usePAM) [ "--without-pam" ];
|
|
|
|
meta = {
|
|
homepage = http://mmonit.com/monit/;
|
|
description = "Monitoring system";
|
|
license = stdenv.lib.licenses.agpl3;
|
|
maintainer = with stdenv.lib.maintainers; [ raskin wmertens ];
|
|
};
|
|
}
|