nagios: fix build
The compiler complains about dl* function missing, this commit adds the necessary flag to pass to gcc to make it build correctly
This commit is contained in:
parent
a4a1c016a3
commit
213623e291
|
@ -3553,6 +3553,12 @@
|
||||||
githubId = 993484;
|
githubId = 993484;
|
||||||
name = "Greg Hale";
|
name = "Greg Hale";
|
||||||
};
|
};
|
||||||
|
immae = {
|
||||||
|
email = "ismael@bouya.org";
|
||||||
|
github = "immae";
|
||||||
|
githubId = 510202;
|
||||||
|
name = "Ismaël Bouya";
|
||||||
|
};
|
||||||
imuli = {
|
imuli = {
|
||||||
email = "i@imu.li";
|
email = "i@imu.li";
|
||||||
github = "imuli";
|
github = "imuli";
|
||||||
|
|
|
@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
configureFlags = [ "--localstatedir=/var/lib/nagios" ];
|
configureFlags = [ "--localstatedir=/var/lib/nagios" ];
|
||||||
buildFlags = [ "all" ];
|
buildFlags = [ "all" ];
|
||||||
|
CFLAGS = "-ldl";
|
||||||
|
|
||||||
# Do not create /var directories
|
# Do not create /var directories
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
|
@ -36,6 +37,6 @@ stdenv.mkDerivation rec {
|
||||||
homepage = "https://www.nagios.org/";
|
homepage = "https://www.nagios.org/";
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = stdenv.lib.licenses.gpl2;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
maintainers = with stdenv.lib.maintainers; [ thoughtpolice relrod ];
|
maintainers = with stdenv.lib.maintainers; [ immae thoughtpolice relrod ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue