pdnsd: fix build
This commit is contained in:
parent
79870e6ab6
commit
d61e62804a
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchurl }:
|
{ lib, stdenv, fetchurl, fetchpatch }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "pdnsd";
|
pname = "pdnsd";
|
||||||
|
@ -9,7 +9,16 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0yragv5zk77a1hfkpnsh17vvsw8b14d6mzfng4bb7i58rb83an5v";
|
sha256 = "0yragv5zk77a1hfkpnsh17vvsw8b14d6mzfng4bb7i58rb83an5v";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patches =
|
||||||
|
# fix build with linux headers >= 5.13
|
||||||
|
lib.optional stdenv.isLinux
|
||||||
|
(fetchpatch {
|
||||||
|
name = "fix-build-linux-headers-gte-5.13.patch";
|
||||||
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/net-dns/pdnsd/files/pdnsd-1.2.9a-linux-5.13_build_fix.patch?id=7ce35657f269c3b7016e8940ad36e59cf06e12a4";
|
||||||
|
hash = "sha256-Sh/0ZyiQpDvFZOWE9OCQ9+ocXurjzJvrE4WNWaGwAwk=";
|
||||||
|
});
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
sed -i 's/.*(cachedir).*/:/' Makefile.in
|
sed -i 's/.*(cachedir).*/:/' Makefile.in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue