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/naemon-livestatus/default.nix | |
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/naemon-livestatus/default.nix')
-rw-r--r-- | flakes/mypackages/pkgs/naemon-livestatus/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/flakes/mypackages/pkgs/naemon-livestatus/default.nix b/flakes/mypackages/pkgs/naemon-livestatus/default.nix new file mode 100644 index 0000000..623230a --- /dev/null +++ b/flakes/mypackages/pkgs/naemon-livestatus/default.nix | |||
@@ -0,0 +1,32 @@ | |||
1 | { stdenv, fetchFromGitHub, autoconf, automake, | ||
2 | libtool, pkg-config, naemon, | ||
3 | varDir ? "/var/lib/naemon", | ||
4 | etcDir ? "/etc/naemon" | ||
5 | }: | ||
6 | stdenv.mkDerivation ({ | ||
7 | pname = "naemon-livestatus"; | ||
8 | version = "33dbcfe-master"; | ||
9 | src = fetchFromGitHub { | ||
10 | owner = "naemon"; | ||
11 | repo = "naemon-livestatus"; | ||
12 | rev = "33dbcfe18e42158f25c27cff95a1e07b73be53b0"; | ||
13 | sha256 = "16jk0c6pwr7ck0g6s12hj6czbhgdr7c7f74zzsp5279af86y8fd6"; | ||
14 | fetchSubmodules = true; | ||
15 | }; | ||
16 | preConfigure = '' | ||
17 | ./autogen.sh || true | ||
18 | ''; | ||
19 | |||
20 | configureFlags = [ | ||
21 | "--localstatedir=${varDir}" | ||
22 | "--sysconfdir=${etcDir}" | ||
23 | ]; | ||
24 | |||
25 | preInstall = '' | ||
26 | substituteInPlace Makefile --replace \ | ||
27 | '@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am' \ | ||
28 | '@$(MAKE) $(AM_MAKEFLAGS) install-exec-am' | ||
29 | ''; | ||
30 | |||
31 | buildInputs = [ autoconf automake libtool pkg-config naemon ]; | ||
32 | }) | ||