1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

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:
Ismaël Bouya 2020-09-10 12:23:11 +02:00
parent a4a1c016a3
commit 213623e291
No known key found for this signature in database
GPG key ID: FD1D4EF57FA95902
2 changed files with 8 additions and 1 deletions

View file

@ -3553,6 +3553,12 @@
githubId = 993484;
name = "Greg Hale";
};
immae = {
email = "ismael@bouya.org";
github = "immae";
githubId = 510202;
name = "Ismaël Bouya";
};
imuli = {
email = "i@imu.li";
github = "imuli";

View file

@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
configureFlags = [ "--localstatedir=/var/lib/nagios" ];
buildFlags = [ "all" ];
CFLAGS = "-ldl";
# Do not create /var directories
preInstall = ''
@ -36,6 +37,6 @@ stdenv.mkDerivation rec {
homepage = "https://www.nagios.org/";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ thoughtpolice relrod ];
maintainers = with stdenv.lib.maintainers; [ immae thoughtpolice relrod ];
};
}