diff --git a/pkgs/os-specific/linux/multipath-tools/default.nix b/pkgs/os-specific/linux/multipath-tools/default.nix index 979974d6a46a..b0469c5eaf79 100644 --- a/pkgs/os-specific/linux/multipath-tools/default.nix +++ b/pkgs/os-specific/linux/multipath-tools/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , coreutils , perl @@ -30,6 +31,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-4cby19BjgnmWf7klK1sBgtZnyvo7q3L1uyVPlVoS+uk="; }; + patches = [ + # Backport build fix for musl libc 1.2.5 + (fetchpatch { + url = "https://github.com/openSUSE/multipath-tools/commit/e5004de8296cd596aeeac0a61b901e98cf7a69d2.patch"; + hash = "sha256-ZvNFVphB9f+S/XMxktR6P/YYSTLeJXEsj4XrAnw6GUI="; + excludes = ["tests/util.c"]; + }) + ]; + postPatch = '' substituteInPlace create-config.mk \ --replace /bin/echo ${coreutils}/bin/echo