pax: fix build with musl (#193195)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by tricktron Sandro and committed by GitHub b3091f77 ecf2b9b7

+5 -2
+5 -2
pkgs/tools/archivers/pax/default.nix
··· 1 - { lib, stdenv, fetchurl, utmp }: 2 3 stdenv.mkDerivation rec { 4 pname = "pax"; ··· 9 sha256 = "1p18nxijh323f4i1s2pg7pcr0557xljl5avv8ll5s9nfr34r5j0w"; 10 }; 11 12 - buildInputs = lib.optional stdenv.isDarwin utmp; 13 14 buildPhase = '' 15 sh Build.sh -r -tpax
··· 1 + { lib, stdenv, fetchurl, utmp, musl-fts }: 2 3 stdenv.mkDerivation rec { 4 pname = "pax"; ··· 9 sha256 = "1p18nxijh323f4i1s2pg7pcr0557xljl5avv8ll5s9nfr34r5j0w"; 10 }; 11 12 + buildInputs = lib.optional stdenv.isDarwin utmp 13 + ++ lib.optional stdenv.hostPlatform.isMusl musl-fts; 14 + 15 + NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-lfts"; 16 17 buildPhase = '' 18 sh Build.sh -r -tpax