aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/default.nix b/default.nix
index b5dad69..92dea9c 100644
--- a/default.nix
+++ b/default.nix
@@ -179,6 +179,27 @@ let
179 ''; 179 '';
180 }; 180 };
181 181
182 cnagios = stdenv.mkDerivation (fetchedGithub ./fetched/cnagios.json // rec {
183 configureFlags = [
184 "--with-etc-dir=/etc/cnagios"
185 "--with-var-dir=/var/lib/naemon"
186 "--with-nagios-data=4"
187 ];
188
189 prePatch = ''
190 sed -i -e "s/-lcurses/-lncurses/" Makefile.in
191 '';
192 installPhase = ''
193 install -dm755 $out/share/doc/cnagios
194 install -Dm644 cnagiosrc $out/share/doc/cnagios/
195 install -Dm644 cnagios.help $out/share/doc/cnagios/
196 install -Dm644 cnagios.pl $out/share/doc/cnagios/
197 install -dm755 $out/bin
198 install -Dm755 cnagios $out/bin/
199 '';
200 propagatedBuildInputs = [ perl ncurses ];
201 });
202
182# https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh 203# https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh
183# https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks 204# https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks
184in 205in
@@ -208,5 +229,6 @@ in
208 inherit note terminal_velocity; 229 inherit note terminal_velocity;
209 inherit mtop; 230 inherit mtop;
210 inherit tiv; 231 inherit tiv;
232 inherit cnagios;
211 #inherit nixos; 233 #inherit nixos;
212 } 234 }