pax: fix build with musl (#193195)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
tricktron 2023-01-07 23:52:04 +01:00 committed by GitHub
parent ecf2b9b71e
commit b3091f774e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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