Skip to content

Commit

Permalink
fpart: init at 0.9.3
Browse files Browse the repository at this point in the history
(cherry picked from commit 983d014)
  • Loading branch information
bjornfor committed Sep 17, 2017
1 parent 676560a commit 1d156a6
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions 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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -2052,6 +2052,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) CoreServices;
};

fpart = callPackage ../tools/misc/fpart { };

fping = callPackage ../tools/networking/fping {};

fpm = callPackage ../tools/package-management/fpm { };
Expand Down

0 comments on commit 1d156a6

Please sign in to comment.