Skip to content

Commit

Permalink
pax: fix build with musl (#193195)
Browse files Browse the repository at this point in the history
Co-authored-by: Sandro <[email protected]>
  • Loading branch information
tricktron and SuperSandro2000 authored Jan 7, 2023
1 parent ecf2b9b commit b3091f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/tools/archivers/pax/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, utmp }:
{ lib, stdenv, fetchurl, utmp, musl-fts }:

stdenv.mkDerivation rec {
pname = "pax";
Expand All @@ -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
Expand Down

0 comments on commit b3091f7

Please sign in to comment.