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 --- .../mypackages/pkgs/naemon-livestatus/default.nix | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 flakes/mypackages/pkgs/naemon-livestatus/default.nix (limited to 'flakes/mypackages/pkgs/naemon-livestatus/default.nix') diff --git a/flakes/mypackages/pkgs/naemon-livestatus/default.nix b/flakes/mypackages/pkgs/naemon-livestatus/default.nix new file mode 100644 index 0000000..623230a --- /dev/null +++ b/flakes/mypackages/pkgs/naemon-livestatus/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, autoconf, automake, + libtool, pkg-config, naemon, + varDir ? "/var/lib/naemon", + etcDir ? "/etc/naemon" +}: +stdenv.mkDerivation ({ + pname = "naemon-livestatus"; + version = "33dbcfe-master"; + src = fetchFromGitHub { + owner = "naemon"; + repo = "naemon-livestatus"; + rev = "33dbcfe18e42158f25c27cff95a1e07b73be53b0"; + sha256 = "16jk0c6pwr7ck0g6s12hj6czbhgdr7c7f74zzsp5279af86y8fd6"; + fetchSubmodules = true; + }; + preConfigure = '' + ./autogen.sh || true + ''; + + configureFlags = [ + "--localstatedir=${varDir}" + "--sysconfdir=${etcDir}" + ]; + + preInstall = '' + substituteInPlace Makefile --replace \ + '@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am' \ + '@$(MAKE) $(AM_MAKEFLAGS) install-exec-am' + ''; + + buildInputs = [ autoconf automake libtool pkg-config naemon ]; +}) -- cgit v1.2.3