tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pdnsd: fix build
ajs124
3 years ago
d61e6280
79870e6a
+11
-2
1 changed file
expand all
collapse all
unified
split
pkgs
tools
networking
pdnsd
default.nix
+11
-2
pkgs/tools/networking/pdnsd/default.nix
···
1
1
-
{ lib, stdenv, fetchurl }:
1
1
+
{ lib, stdenv, fetchurl, fetchpatch }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "pdnsd";
···
9
9
sha256 = "0yragv5zk77a1hfkpnsh17vvsw8b14d6mzfng4bb7i58rb83an5v";
10
10
};
11
11
12
12
-
patchPhase = ''
12
12
+
patches =
13
13
+
# fix build with linux headers >= 5.13
14
14
+
lib.optional stdenv.isLinux
15
15
+
(fetchpatch {
16
16
+
name = "fix-build-linux-headers-gte-5.13.patch";
17
17
+
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";
18
18
+
hash = "sha256-Sh/0ZyiQpDvFZOWE9OCQ9+ocXurjzJvrE4WNWaGwAwk=";
19
19
+
});
20
20
+
21
21
+
postPatch = ''
13
22
sed -i 's/.*(cachedir).*/:/' Makefile.in
14
23
'';
15
24