diff --git a/pkgs/tools/archivers/pax/default.nix b/pkgs/tools/archivers/pax/default.nix index cfba3754c819..feacf73fe87b 100644 --- a/pkgs/tools/archivers/pax/default.nix +++ b/pkgs/tools/archivers/pax/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, utmp }: +{ lib, stdenv, fetchurl, utmp, musl-fts }: stdenv.mkDerivation rec { pname = "pax"; @@ -9,7 +9,10 @@ stdenv.mkDerivation rec { sha256 = "1p18nxijh323f4i1s2pg7pcr0557xljl5avv8ll5s9nfr34r5j0w"; }; - buildInputs = lib.optional stdenv.isDarwin utmp; + buildInputs = lib.optional stdenv.isDarwin utmp + ++ lib.optional stdenv.hostPlatform.isMusl musl-fts; + + NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-lfts"; buildPhase = '' sh Build.sh -r -tpax