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/cnagios/default.nix | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 flakes/mypackages/pkgs/cnagios/default.nix (limited to 'flakes/mypackages/pkgs/cnagios') diff --git a/flakes/mypackages/pkgs/cnagios/default.nix b/flakes/mypackages/pkgs/cnagios/default.nix new file mode 100644 index 0000000..2b8b0da --- /dev/null +++ b/flakes/mypackages/pkgs/cnagios/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, perl, ncurses }: +stdenv.mkDerivation (rec { + version = "3bd27fb-master"; + pname = "cnagios"; + name = "${pname}-${version}"; + src = fetchFromGitHub { + owner = "dannywarren"; + repo = "cnagios"; + rev = "3bd27fb40e68f61ffd01bea6234b919a667b6fe4"; + sha256 = "0iy5pmlcz6y3if72nav22xqxniiv1v8ywi0927m6s459hkw5n2rb"; + fetchSubmodules = true; + }; + configureFlags = [ + "--with-etc-dir=/etc/cnagios" + "--with-var-dir=/var/lib/naemon" + "--with-status-file=/var/lib/naemon/status.dat" + "--with-nagios-data=4" + ]; + + prePatch = '' + sed -i -e "s/-lcurses/-lncurses/" Makefile.in + ''; + installPhase = '' + install -dm755 $out/share/doc/cnagios + install -Dm644 cnagiosrc $out/share/doc/cnagios/ + install -Dm644 cnagios.help $out/share/doc/cnagios/ + install -Dm644 cnagios.pl $out/share/doc/cnagios/ + install -dm755 $out/bin + install -Dm755 cnagios $out/bin/ + ''; + buildInputs = [ perl ncurses ]; +}) -- cgit v1.2.3