blob: 46ef51acee48aa4be9b72c042e22c999d40e770a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ stdenv, mylibs, autoconf, automake,
libtool, pkg-config, naemon,
varDir ? "/var/lib/naemon",
etcDir ? "/etc/naemon"
}:
stdenv.mkDerivation (mylibs.fetchedGithub ./naemon-livestatus.json // {
preConfigure = ''
./autogen.sh || true
'';
configureFlags = [
"--localstatedir=${varDir}"
"--sysconfdir=${etcDir}"
];
preInstall = ''
substituteInPlace Makefile --replace \
'@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am' \
'@$(MAKE) $(AM_MAKEFLAGS) install-exec-am'
'';
buildInputs = [ autoconf automake libtool pkg-config naemon ];
})
|