diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 01:35:06 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 02:11:48 +0200 |
commit | 1a64deeb894dc95e2645a75771732c6cc53a79ad (patch) | |
tree | 1b9df4838f894577a09b9b260151756272efeb53 /flakes/mypackages/pkgs/cnagios | |
parent | fa25ffd4583cc362075cd5e1b4130f33306103f0 (diff) | |
download | Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip |
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
Diffstat (limited to 'flakes/mypackages/pkgs/cnagios')
-rw-r--r-- | flakes/mypackages/pkgs/cnagios/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
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 @@ | |||
1 | { stdenv, fetchFromGitHub, perl, ncurses }: | ||
2 | stdenv.mkDerivation (rec { | ||
3 | version = "3bd27fb-master"; | ||
4 | pname = "cnagios"; | ||
5 | name = "${pname}-${version}"; | ||
6 | src = fetchFromGitHub { | ||
7 | owner = "dannywarren"; | ||
8 | repo = "cnagios"; | ||
9 | rev = "3bd27fb40e68f61ffd01bea6234b919a667b6fe4"; | ||
10 | sha256 = "0iy5pmlcz6y3if72nav22xqxniiv1v8ywi0927m6s459hkw5n2rb"; | ||
11 | fetchSubmodules = true; | ||
12 | }; | ||
13 | configureFlags = [ | ||
14 | "--with-etc-dir=/etc/cnagios" | ||
15 | "--with-var-dir=/var/lib/naemon" | ||
16 | "--with-status-file=/var/lib/naemon/status.dat" | ||
17 | "--with-nagios-data=4" | ||
18 | ]; | ||
19 | |||
20 | prePatch = '' | ||
21 | sed -i -e "s/-lcurses/-lncurses/" Makefile.in | ||
22 | ''; | ||
23 | installPhase = '' | ||
24 | install -dm755 $out/share/doc/cnagios | ||
25 | install -Dm644 cnagiosrc $out/share/doc/cnagios/ | ||
26 | install -Dm644 cnagios.help $out/share/doc/cnagios/ | ||
27 | install -Dm644 cnagios.pl $out/share/doc/cnagios/ | ||
28 | install -dm755 $out/bin | ||
29 | install -Dm755 cnagios $out/bin/ | ||
30 | ''; | ||
31 | buildInputs = [ perl ncurses ]; | ||
32 | }) | ||