From 8dd753dedcc5445bf65d112eb76a2a888462b5a3 Mon Sep 17 00:00:00 2001 From: Rahul Gopinath Date: Mon, 9 May 2016 11:50:33 -0700 Subject: [PATCH] pxattr: Init at 2.1.0 pxattr provides a single interface to extended file system attributes. It can be used to save and restore extended file system attributes before using a utility such as tar for backup which does not understand extended fsattr. --- pkgs/tools/archivers/pxattr/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tools/archivers/pxattr/default.nix diff --git a/pkgs/tools/archivers/pxattr/default.nix b/pkgs/tools/archivers/pxattr/default.nix new file mode 100644 index 00000000000..a72b067e9aa --- /dev/null +++ b/pkgs/tools/archivers/pxattr/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, gcc }: + +stdenv.mkDerivation rec { + name = "pxattr-2.1.0"; + + src = fetchurl { + url = "http://www.lesbonscomptes.com/pxattr/pxattr-2.1.0.tar.gz"; + sha256 = "1dwcqc5z7gzma1zhis2md49bj2nq7m6jimh4zlx9szw6svisz56z"; + }; + + buildInputs = [ gcc ]; + + installPhase = '' + mkdir -p $out/bin + cp pxattr $out/bin + ''; + + meta = { + homepage = http://www.lesbonscomptes.com/pxattr/index.html; + description = "Provides a single interface to extended file attributes"; + maintainers = [ stdenv.lib.maintainers.vrthra ]; + license = [ stdenv.lib.licenses.mit ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7b9fb49f630..16406f097e2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1891,6 +1891,8 @@ in pixz = callPackage ../tools/compression/pixz { }; + pxattr = callPackage ../tools/archivers/pxattr { }; + pxz = callPackage ../tools/compression/pxz { }; hans = callPackage ../tools/networking/hans { };