Unverified Commit 8a4836de authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

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

parents 6ae34b4c b1518517
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
{ 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" ];