nixpkgs/pkgs/tools/misc/fpart/default.nix
Ryan Mulligan 549d592038 fpart: 0.9.3 -> 1.0.0
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/f8lzzqnfr0byjrz4xv617j954f9nyqlv-fpart-1.0.0/bin/fpart -h` got 0 exit code
- ran `/nix/store/f8lzzqnfr0byjrz4xv617j954f9nyqlv-fpart-1.0.0/bin/fpart --help` got 0 exit code
- ran `/nix/store/f8lzzqnfr0byjrz4xv617j954f9nyqlv-fpart-1.0.0/bin/fpart -V` and found version 1.0.0
- ran `/nix/store/f8lzzqnfr0byjrz4xv617j954f9nyqlv-fpart-1.0.0/bin/fpart --version` and found version 1.0.0
- ran `/nix/store/f8lzzqnfr0byjrz4xv617j954f9nyqlv-fpart-1.0.0/bin/fpart --help` and found version 1.0.0
- ran `/nix/store/f8lzzqnfr0byjrz4xv617j954f9nyqlv-fpart-1.0.0/bin/fpsync -h` got 0 exit code
- ran `/nix/store/f8lzzqnfr0byjrz4xv617j954f9nyqlv-fpart-1.0.0/bin/fpsync -h` and found version 1.0.0
- found 1.0.0 with grep in /nix/store/f8lzzqnfr0byjrz4xv617j954f9nyqlv-fpart-1.0.0
- found 1.0.0 in filename of file in /nix/store/f8lzzqnfr0byjrz4xv617j954f9nyqlv-fpart-1.0.0
2018-02-27 11:27:10 +01:00

43 lines
1.5 KiB
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "fpart-${version}";
version = "1.0.0";
src = fetchurl {
url = "http://contribs.martymac.org/fpart/${name}.tar.gz";
sha256 = "1p0ajmry18lcg82znfp8nxs4w3izic775l7df08hywlq4vfa66pg";
};
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 ];
};
}