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