Merge pull request #105802 from gebner/pax

pax: init at 20201030
This commit is contained in:
Gabriel Ebner 2020-12-03 18:04:43 +01:00 committed by GitHub
commit 75bf9e1409
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "pax";
version = "20201030";
src = fetchurl {
url = "http://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${version}.tgz";
sha256 = "1p18nxijh323f4i1s2pg7pcr0557xljl5avv8ll5s9nfr34r5j0w";
};
buildPhase = ''
sh Build.sh -r -tpax
'';
installPhase = ''
install -Dm555 pax $out/bin/pax
ln -s $out/bin/pax $out/bin/paxcpio
ln -s $out/bin/pax $out/bin/paxtar
install -Dm444 mans/pax{,cpio,tar}.1 -t $out/share/man/man1/
'';
meta = with stdenv.lib; {
description = "POSIX standard archive tool from MirBSD";
homepage = "https://www.mirbsd.org/pax.htm";
license = licenses.bsd3;
maintainers = with maintainers; [ gebner ];
platforms = platforms.unix;
};
}

View file

@ -3542,6 +3542,8 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};
pax = callPackage ../tools/archivers/pax { };
rage = callPackage ../tools/security/rage { };
rar2fs = callPackage ../tools/filesystems/rar2fs { };