aboutsummaryrefslogtreecommitdiff
path: root/pkgs/cnagios
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-26 02:35:33 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-26 02:35:33 +0200
commita2230e848bc85e484ef14163ac90fdb7045855f7 (patch)
tree2a1cc4158e5aeca3b6022efec7cc11ee405b7757 /pkgs/cnagios
parent1618010c141571c4d9a3fa9d340d009620c4520f (diff)
downloadNix-a2230e848bc85e484ef14163ac90fdb7045855f7.tar.gz
Nix-a2230e848bc85e484ef14163ac90fdb7045855f7.tar.zst
Nix-a2230e848bc85e484ef14163ac90fdb7045855f7.zip
Move more packages to separate files
Diffstat (limited to 'pkgs/cnagios')
-rw-r--r--pkgs/cnagios/cnagios.json15
-rw-r--r--pkgs/cnagios/default.nix22
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/cnagios/cnagios.json b/pkgs/cnagios/cnagios.json
new file mode 100644
index 0000000..4c1c385
--- /dev/null
+++ b/pkgs/cnagios/cnagios.json
@@ -0,0 +1,15 @@
1{
2 "tag": "3bd27fb-master",
3 "meta": {
4 "name": "cnagios",
5 "url": "https://github.com/dannywarren/cnagios",
6 "branch": "master"
7 },
8 "github": {
9 "owner": "dannywarren",
10 "repo": "cnagios",
11 "rev": "3bd27fb40e68f61ffd01bea6234b919a667b6fe4",
12 "sha256": "0iy5pmlcz6y3if72nav22xqxniiv1v8ywi0927m6s459hkw5n2rb",
13 "fetchSubmodules": true
14 }
15}
diff --git a/pkgs/cnagios/default.nix b/pkgs/cnagios/default.nix
new file mode 100644
index 0000000..2e6c799
--- /dev/null
+++ b/pkgs/cnagios/default.nix
@@ -0,0 +1,22 @@
1{ stdenv, fetchedGithub, perl, ncurses }:
2stdenv.mkDerivation (fetchedGithub ./cnagios.json // {
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})