]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame - pkgs/cnagios/default.nix
Add xdg config patch for ledger
[perso/Immae/Config/Nix.git] / pkgs / cnagios / default.nix
CommitLineData
dff8b593
IB
1{ stdenv, mylibs, perl, ncurses }:
2stdenv.mkDerivation (mylibs.fetchedGithub ./cnagios.json // {
a2230e84
IB
3 configureFlags = [
4 "--with-etc-dir=/etc/cnagios"
5 "--with-var-dir=/var/lib/naemon"
6 "--with-status-file=/var/lib/naemon/status.dat"
7 "--with-nagios-data=4"
8 ];
9
10 prePatch = ''
11 sed -i -e "s/-lcurses/-lncurses/" Makefile.in
12 '';
13 installPhase = ''
14 install -dm755 $out/share/doc/cnagios
15 install -Dm644 cnagiosrc $out/share/doc/cnagios/
16 install -Dm644 cnagios.help $out/share/doc/cnagios/
17 install -Dm644 cnagios.pl $out/share/doc/cnagios/
18 install -dm755 $out/bin
19 install -Dm755 cnagios $out/bin/
20 '';
21 buildInputs = [ perl ncurses ];
22})