3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/fpart/default.nix
worldofpeace eeec5612b4 fpart: 1.0.0 -> 1.1.0
Also use `fetchFromGitHub` for fetch so we can use https.
2018-11-21 17:05:20 -05:00

47 lines
1.6 KiB
Nix

{ stdenv, fetchFromGitHub, autoreconfHook }:
stdenv.mkDerivation rec {
name = "fpart-${version}";
version = "1.1.0";
src = fetchFromGitHub {
owner = "martymac";
repo = "fpart";
rev = name;
sha256 = "0h3mqc1xj5j2z8s8g3pvvpbjs6x74dj8niyh3p2ymla35kbzskf4";
};
nativeBuildInputs = [ autoreconfHook ];
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 ];
};
}