From 1a64deeb894dc95e2645a75771732c6cc53a79ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 4 Oct 2023 01:35:06 +0200 Subject: Squash changes containing private information There were a lot of changes since the previous commit, but a lot of them contained personnal information about users. All thos changes got stashed into a single commit (history is kept in a different place) and private information was moved in a separate private repository --- flakes/mypackages/pkgs/naemon/default.nix | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 flakes/mypackages/pkgs/naemon/default.nix (limited to 'flakes/mypackages/pkgs/naemon') diff --git a/flakes/mypackages/pkgs/naemon/default.nix b/flakes/mypackages/pkgs/naemon/default.nix new file mode 100644 index 0000000..2a29bdc --- /dev/null +++ b/flakes/mypackages/pkgs/naemon/default.nix @@ -0,0 +1,44 @@ +{ stdenv, fetchFromGitHub, help2man, monitoring-plugins, autoconf, automake, + libtool, glib, pkg-config, gperf, + varDir ? "/var/lib/naemon", + etcDir ? "/etc/naemon", + cacheDir ? "/var/cache/naemon", + logDir ? "/var/log/naemon", + runDir ? "/run/naemon", + user ? "naemon", + group ? "naemon" +}: +stdenv.mkDerivation ({ + pname = "naemon"; + version = "d7ac1c8-master"; + src = fetchFromGitHub { + owner = "naemon"; + repo = "naemon-core"; + rev = "d7ac1c824e01dbb1c4a6bd0550b324e7cf165d54"; + sha256 = "003grwciplnqfn9jh2km2pm6xxp8fxvmwihg3vmch8f0vfwcmv1m"; + fetchSubmodules = true; + }; + passthru.status_engine_version = "1-1-0"; + preConfigure = '' + ./autogen.sh || true + ''; + + configureFlags = [ + "--localstatedir=${varDir}" + "--sysconfdir=${etcDir}" + "--with-pkgconfdir=${etcDir}" + "--with-pluginsdir=${monitoring-plugins}/libexec" + "--with-tempdir=${cacheDir}" + "--with-checkresultdir=${cacheDir}/checkresults" + "--with-logdir=${logDir}" + "--with-naemon-user=${user}" + "--with-naemon-group=${group}" + "--with-lockfile=${runDir}/naemon.pid" + ]; + + preInstall = '' + substituteInPlace Makefile --replace '$(MAKE) $(AM_MAKEFLAGS) install-exec-hook' "" + ''; + + buildInputs = [ autoconf automake help2man libtool glib pkg-config gperf ]; +}) -- cgit v1.2.3