1 { lib, stdenv, fetchurl, utmp, musl-fts }:
3 stdenv.mkDerivation rec {
8 url = "http://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${version}.tgz";
9 sha256 = "sha256-6VXV06+Xrt4KP0Y6mlm4Po0Qg6rxQutvOIxUmn0YLms=";
12 buildInputs = lib.optional stdenv.hostPlatform.isDarwin utmp
13 ++ lib.optional stdenv.hostPlatform.isMusl musl-fts;
15 NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-lfts";
22 install -Dm555 pax $out/bin/pax
23 ln -s $out/bin/pax $out/bin/paxcpio
24 ln -s $out/bin/pax $out/bin/paxtar
25 install -Dm444 mans/pax{,cpio,tar}.1 -t $out/share/man/man1/
29 description = "POSIX standard archive tool from MirBSD";
30 homepage = "https://www.mirbsd.org/pax.htm";
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ gebner ];
33 platforms = platforms.unix;