Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, openssl, perl }: 2 3stdenv.mkDerivation rec { 4 version = "0.4"; 5 pname = "chunksync"; 6 7 src = fetchurl { 8 url = "https://chunksync.florz.de/chunksync_${version}.tar.gz"; 9 sha256 = "1gwqp1kjwhcmwhynilakhzpzgc0c6kk8c9vkpi30gwwrwpz3cf00"; 10 }; 11 12 buildInputs = [openssl perl]; 13 14 NIX_LDFLAGS = "-lgcc_s"; 15 16 makeFlags = [ 17 "DESTDIR=$(out)" 18 "PREFIX=" 19 ]; 20 21 preInstall = '' 22 mkdir -p $out/bin 23 mkdir -p $out/share/man/man1 24 ''; 25 26 meta = { 27 description = "Space-efficient incremental backups of large files or block devices"; 28 homepage = "http://chunksync.florz.de/"; 29 license = lib.licenses.gpl2; 30 platforms = with lib.platforms; linux; 31 }; 32}