From 1d896c47c98516a727d25f90a11ea9910c2b293f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 13 Apr 2014 20:28:43 +0200 Subject: [PATCH] apcupsd: add missing assert --- pkgs/servers/apcupsd/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/servers/apcupsd/default.nix b/pkgs/servers/apcupsd/default.nix index 8e25bdd87f0b..ad8685d3d422 100644 --- a/pkgs/servers/apcupsd/default.nix +++ b/pkgs/servers/apcupsd/default.nix @@ -2,6 +2,8 @@ , enableCgiScripts ? true, gd }: +assert enableCgiScripts -> gd != null; + stdenv.mkDerivation rec { pname = "apcupsd"; name = "${pname}-3.14.12";