pkgsMusl.libnetfilter_conntrack: fix build

This commit is contained in:
Alyssa Ross 2022-03-06 00:49:28 +00:00
parent b8734c50e2
commit 2cc5ec8657

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, pkg-config, libnfnetlink, libmnl }:
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, libnfnetlink, libmnl }:
stdenv.mkDerivation rec {
pname = "libnetfilter_conntrack";
@ -9,6 +9,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-Z72d9J/jTouCFE9t+5OzIPOEqOpZcn6S/40YtfS1eag=";
};
patches = [
# Fix Musl build.
(fetchpatch {
url = "https://git.netfilter.org/libnetfilter_conntrack/patch/?id=21ee35dde73aec5eba35290587d479218c6dd824";
sha256 = "00rp82jrx5ygcw8la3c7bv7sigw9qzbn956dk71qjx981a2g2kqk";
})
];
buildInputs = [ libmnl ];
propagatedBuildInputs = [ libnfnetlink ];
nativeBuildInputs = [ pkg-config ];