summary refs log tree commit diff
path: root/pkgs/tools/misc/fpart
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2017-09-17 10:54:58 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2017-09-17 13:04:09 +0200
commit983d01421e7452863ad312ff6b7fbb2b9046186a (patch)
tree1ca026928a1b7d758a74f81d50edecf9f8fced1d /pkgs/tools/misc/fpart
parent707b28143256e2b5d3bd7236939889757c93f9f2 (diff)
downloadnixpkgs-983d01421e7452863ad312ff6b7fbb2b9046186a.tar
nixpkgs-983d01421e7452863ad312ff6b7fbb2b9046186a.tar.gz
nixpkgs-983d01421e7452863ad312ff6b7fbb2b9046186a.tar.bz2
nixpkgs-983d01421e7452863ad312ff6b7fbb2b9046186a.tar.lz
nixpkgs-983d01421e7452863ad312ff6b7fbb2b9046186a.tar.xz
nixpkgs-983d01421e7452863ad312ff6b7fbb2b9046186a.tar.zst
nixpkgs-983d01421e7452863ad312ff6b7fbb2b9046186a.zip
fpart: init at 0.9.3
Diffstat (limited to 'pkgs/tools/misc/fpart')
-rw-r--r--pkgs/tools/misc/fpart/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fpart/default.nix b/pkgs/tools/misc/fpart/default.nix
new file mode 100644
index 00000000000..b29e7641310
--- /dev/null
+++ b/pkgs/tools/misc/fpart/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "fpart-${version}";
+  version = "0.9.3";
+
+  src = fetchurl {
+    url = "http://contribs.martymac.org/fpart/${name}.tar.gz";
+    sha256 = "0f1vm7c7v9nrd0mnz6qivpnngni6y53b11kvniclqfd25hhw6ggq";
+  };
+
+  postInstall = ''
+    sed "s|^FPART_BIN=.*|FPART_BIN=\"$out/bin/fpart\"|" \
+        -i "$out/bin/fpsync"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Split file trees into bags (called \"partitions\")";
+    longDescription = ''
+      Fpart is a tool that helps you sort file trees and pack them into bags
+      (called "partitions").
+
+      It splits a list of directories and file trees into a certain number of
+      partitions, trying to produce partitions with the same size and number of
+      files. It can also produce partitions with a given number of files or a
+      limited size.
+
+      Once generated, partitions are either printed as file lists to stdout
+      (default) or to files. Those lists can then be used by third party programs.
+
+      Fpart also includes a live mode, which allows it to crawl very large
+      filesystems and produce partitions in live. Hooks are available to act on
+      those partitions (e.g. immediatly start a transfer using rsync(1))
+      without having to wait for the filesystem traversal job to be finished.
+      Used this way, fpart can be seen as a powerful data migration tool.
+    '';
+    homepage = "http://contribs.martymac.org/";
+    license = licenses.bsd2;
+    platforms = platforms.unix;
+    maintainers = [ maintainers.bjornfor ];
+  };
+}