@@ -1,4 +1,6 @@
1−{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, xmlto, docbook_xml_dtd_412, docbook_xsl }:
1+{ lib, stdenv, fetchFromGitHub, fetchpatch
2+, autoconf, automake, libtool, xmlto, docbook_xml_dtd_412, docbook_xsl
3+}:
24
35stdenv.mkDerivation rec {
46 pname = "libieee1284";
@@ -11,6 +13,14 @@ stdenv.mkDerivation rec {
1113 sha256 = "0wfv1prmhhpyll9l4g1ij3im7hk9mm96ydw3l9fvhjp3993cdn2x";
1214 };
1315
16+ patches = [
17+ # Fix build on Musl.
18+ (fetchpatch {
19+ url = "https://raw.githubusercontent.com/void-linux/void-packages/861ac185a6b60134292ff93d40e40b5391d0aa8e/srcpkgs/libieee1284/patches/musl.patch";
20+ sha256 = "03xivd6z7m51i5brlmzs60pjrlqyr4561qlnh182wa7rrm01x5y6";
21+ })
22+ ];
23+
1424 nativeBuildInputs = [
1525 autoconf
1626 automake
@@ -24,7 +34,7 @@ stdenv.mkDerivation rec {
2434 "--without-python"
2535 ];
2636
27− preConfigure = ''
37+ prePatch = ''
2838 ./bootstrap
2939 '';
3040