summary refs log tree commit diff
path: root/pkgs/tools/archivers/pax
diff options
context:
space:
mode:
authortricktron <tgagnaux@gmail.com>2023-01-07 23:52:04 +0100
committerGitHub <noreply@github.com>2023-01-07 23:52:04 +0100
commitb3091f774ee9406053e73f9791265a216642ba8c (patch)
treeac04f58a80b907f44a17ff753fa9d8c2fc1fe71f /pkgs/tools/archivers/pax
parentecf2b9b71e9936f92429213b0f0454320471c595 (diff)
downloadnixpkgs-b3091f774ee9406053e73f9791265a216642ba8c.tar
nixpkgs-b3091f774ee9406053e73f9791265a216642ba8c.tar.gz
nixpkgs-b3091f774ee9406053e73f9791265a216642ba8c.tar.bz2
nixpkgs-b3091f774ee9406053e73f9791265a216642ba8c.tar.lz
nixpkgs-b3091f774ee9406053e73f9791265a216642ba8c.tar.xz
nixpkgs-b3091f774ee9406053e73f9791265a216642ba8c.tar.zst
nixpkgs-b3091f774ee9406053e73f9791265a216642ba8c.zip
pax: fix build with musl (#193195)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools/archivers/pax')
-rw-r--r--pkgs/tools/archivers/pax/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/tools/archivers/pax/default.nix b/pkgs/tools/archivers/pax/default.nix
index cfba3754c81..feacf73fe87 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