net-snmp: fix building for musl (#340312)

This commit is contained in:
Aleksana
2024-09-09 19:56:15 +08:00
committed by GitHub
+6 -2
View File
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl
{ lib, stdenv, fetchurl, fetchpatch
, file, openssl, perl, nettools
, autoreconfHook
, withPerlTools ? false
@@ -27,7 +27,11 @@ in stdenv.mkDerivation rec {
in [
(fetchAlpinePatch "fix-includes.patch" "0zpkbb6k366qpq4dax5wknwprhwnhighcp402mlm7950d39zfa3m")
(fetchAlpinePatch "netsnmp-swinst-crash.patch" "0gh164wy6zfiwiszh58fsvr25k0ns14r3099664qykgpmickkqid")
(fetchAlpinePatch "fix-fd_mask.patch" "/i9ve61HjDzqZt+u1wajNtSQoizl+KePvhcAt24HKd0=")
(fetchpatch {
name = "configure-musl.patch";
url = "https://github.com/net-snmp/net-snmp/commit/a62169f1fa358be8f330ea8519ade0610fac525b.patch";
hash = "sha256-+vWH095fFL3wE6XLsTaPXgMDya0LRWdlL6urD5AIBUs=";
})
];
outputs = [ "bin" "out" "dev" "lib" ];