dnsmasq: fix build with nettle 3.5

This commit is contained in:
worldofpeace 2019-10-14 18:25:28 -04:00
parent ea7918fd0d
commit 9058ad8c74

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, dbus, nettle
{ stdenv, fetchurl, pkgconfig, dbus, nettle, fetchpatch
, libidn, libnetfilter_conntrack }:
with stdenv.lib;
@ -19,6 +19,15 @@ stdenv.mkDerivation rec {
sha256 = "1fv3g8vikj3sn37x1j6qsywn09w1jipvlv34j3q5qrljbrwa5ayd";
};
patches = [
# Fix build with nettle 3.5
(fetchpatch {
name = "nettle-3.5.patch";
url = "thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=patch;h=ab73a746a0d6fcac2e682c5548eeb87fb9c9c82e";
sha256 = "1hnixij3jp1p6zc3bx2dr92yyf9jp1ahhl9hiiq7bkbhbrw6mbic";
})
];
preBuild = ''
makeFlagsArray=("COPTS=${copts}")
'';