summary refs log tree commit diff
path: root/pkgs/tools/archivers/pax
diff options
context:
space:
mode:
authorGabriel Ebner <gebner@gebner.org>2020-12-03 16:59:06 +0100
committerGabriel Ebner <gebner@gebner.org>2020-12-03 18:03:30 +0100
commit02362007aa755eba15cc7ce486e5095f77f855a0 (patch)
tree6face9ae00cd54830fdb253364958f749a5f8c48 /pkgs/tools/archivers/pax
parent079251e8dbaea5d47de9898911f8d5ab6a7a2200 (diff)
downloadnixpkgs-02362007aa755eba15cc7ce486e5095f77f855a0.tar
nixpkgs-02362007aa755eba15cc7ce486e5095f77f855a0.tar.gz
nixpkgs-02362007aa755eba15cc7ce486e5095f77f855a0.tar.bz2
nixpkgs-02362007aa755eba15cc7ce486e5095f77f855a0.tar.lz
nixpkgs-02362007aa755eba15cc7ce486e5095f77f855a0.tar.xz
nixpkgs-02362007aa755eba15cc7ce486e5095f77f855a0.tar.zst
nixpkgs-02362007aa755eba15cc7ce486e5095f77f855a0.zip
pax: init at 20201030
Diffstat (limited to 'pkgs/tools/archivers/pax')
-rw-r--r--pkgs/tools/archivers/pax/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/archivers/pax/default.nix b/pkgs/tools/archivers/pax/default.nix
new file mode 100644
index 00000000000..aa457b976d0
--- /dev/null
+++ b/pkgs/tools/archivers/pax/default.nix
@@ -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;
+  };
+}