]> git.immae.eu Git - perso/Immae/Config/Nix.git/blob - pkgs/naemon/default.nix
Allow unsafe code in dilion (wip for safe secrets)
[perso/Immae/Config/Nix.git] / pkgs / naemon / default.nix
1 { stdenv, mylibs, help2man, monitoring-plugins, autoconf, automake,
2 libtool, glib, pkg-config, gperf,
3 varDir ? "/var/lib/naemon",
4 etcDir ? "/etc/naemon",
5 cacheDir ? "/var/cache/naemon",
6 logDir ? "/var/log/naemon",
7 runDir ? "/run/naemon",
8 user ? "naemon",
9 group ? "naemon"
10 }:
11 stdenv.mkDerivation (mylibs.fetchedGithub ./naemon.json // {
12 passthru.status_engine_version = "1-1-0";
13 preConfigure = ''
14 ./autogen.sh || true
15 '';
16
17 configureFlags = [
18 "--localstatedir=${varDir}"
19 "--sysconfdir=${etcDir}"
20 "--with-pkgconfdir=${etcDir}"
21 "--with-pluginsdir=${monitoring-plugins}/libexec"
22 "--with-tempdir=${cacheDir}"
23 "--with-checkresultdir=${cacheDir}/checkresults"
24 "--with-logdir=${logDir}"
25 "--with-naemon-user=${user}"
26 "--with-naemon-group=${group}"
27 "--with-lockfile=${runDir}/naemon.pid"
28 ];
29
30 preInstall = ''
31 substituteInPlace Makefile --replace '$(MAKE) $(AM_MAKEFLAGS) install-exec-hook' ""
32 '';
33
34 buildInputs = [ autoconf automake help2man libtool glib pkg-config gperf ];
35 })