Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, autoreconfHook 2, pkg-config, libuuid, e2fsprogs, nilfs-utils, ntfs3g, openssl 3}: 4 5stdenv.mkDerivation rec { 6 pname = "partclone"; 7 version = "0.3.23"; 8 9 src = fetchFromGitHub { 10 owner = "Thomas-Tsai"; 11 repo = "partclone"; 12 rev = version; 13 sha256 = "sha256-na9k26+GDdASZ37n0QtFuRDMtq338QOlXTf0X4raOJI="; 14 }; 15 16 nativeBuildInputs = [ autoreconfHook pkg-config ]; 17 buildInputs = [ 18 e2fsprogs libuuid stdenv.cc.libc nilfs-utils ntfs3g openssl 19 (lib.getOutput "static" stdenv.cc.libc) 20 ]; 21 22 configureFlags = [ 23 "--enable-xfs" 24 "--enable-extfs" 25 "--enable-hfsp" 26 "--enable-fat" 27 "--enable-exfat" 28 "--enable-ntfs" 29 "--enable-btrfs" 30 "--enable-minix" 31 "--enable-f2fs" 32 "--enable-nilfs2" 33 ]; 34 35 enableParallelBuilding = true; 36 37 meta = with lib; { 38 description = "Utilities to save and restore used blocks on a partition"; 39 longDescription = '' 40 Partclone provides utilities to save and restore used blocks on a 41 partition and is designed for higher compatibility of the file system by 42 using existing libraries, e.g. e2fslibs is used to read and write the 43 ext2 partition. 44 ''; 45 homepage = "https://partclone.org"; 46 license = licenses.gpl2Plus; 47 maintainers = with maintainers; [ marcweber ]; 48 platforms = platforms.linux; 49 }; 50}