From 213623e2911da27800a9c44e6f360082e89650fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 10 Sep 2020 12:23:11 +0200 Subject: [PATCH] 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 --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/servers/monitoring/nagios/default.nix | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 584f7d174747..4fda49dfa06c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; diff --git a/pkgs/servers/monitoring/nagios/default.nix b/pkgs/servers/monitoring/nagios/default.nix index b8246c27b47d..12957f6d1bb5 100644 --- a/pkgs/servers/monitoring/nagios/default.nix +++ b/pkgs/servers/monitoring/nagios/default.nix @@ -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 ]; }; }