diff --git a/pkgs/tools/networking/dnsmasq/default.nix b/pkgs/tools/networking/dnsmasq/default.nix index 22609eff9ae..2a6b776c14d 100644 --- a/pkgs/tools/networking/dnsmasq/default.nix +++ b/pkgs/tools/networking/dnsmasq/default.nix @@ -27,7 +27,7 @@ stdenv.mkDerivation rec { sha256 = "1hnixij3jp1p6zc3bx2dr92yyf9jp1ahhl9hiiq7bkbhbrw6mbic"; }) ]; - postPatch = '' + postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isLinux '' sed '1i#include ' -i src/dhcp.c '';