1{ stdenv, fetchFromGitHub, autoreconfHook
2, pkgconfig, libuuid, e2fsprogs
3}:
4
5stdenv.mkDerivation rec {
6 name = "partclone-${version}";
7 version = "0.2.89";
8
9 src = fetchFromGitHub {
10 owner = "Thomas-Tsai";
11 repo = "partclone";
12 rev = version;
13 sha256 = "0gw47pchqshhm00yf34qgxh6bh2jfryv0sm7ghwn77bv5gzwr481";
14 };
15
16 nativeBuildInputs = [ autoreconfHook pkgconfig ];
17 buildInputs = [
18 e2fsprogs libuuid stdenv.cc.libc
19 (stdenv.lib.getOutput "static" stdenv.cc.libc)
20 ];
21
22 enableParallelBuilding = true;
23
24 meta = {
25 description = "Utilities to save and restore used blocks on a partition";
26 longDescription = ''
27 Partclone provides utilities to save and restore used blocks on a
28 partition and is designed for higher compatibility of the file system by
29 using existing libraries, e.g. e2fslibs is used to read and write the
30 ext2 partition.
31 '';
32 homepage = http://partclone.org;
33 license = stdenv.lib.licenses.gpl2;
34 maintainers = [stdenv.lib.maintainers.marcweber];
35 platforms = stdenv.lib.platforms.linux;
36 };
37}