Unverified Commit b3091f77 authored by tricktron's avatar tricktron Committed by GitHub
Browse files

pax: fix build with musl (#193195)



Co-authored-by: default avatarSandro <sandro.jaeckel@gmail.com>
parent ecf2b9b7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
{ 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