at 18.09-beta 31 lines 934 B view raw
1{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, libsodium 2, llvmPackages, clang_39, lzma }: 3 4rustPlatform.buildRustPackage rec { 5 name = "rdedup-${version}"; 6 version = "3.0.1"; 7 8 src = fetchFromGitHub { 9 owner = "dpc"; 10 repo = "rdedup"; 11 rev = "e0f26f379a434f76d238c7a5fa6ddd8ae8b32f19"; 12 sha256 = "1nhf8ap0w99aa1h0l599cx90lcvfvjaj67nw9flq9bmmzpn53kp9"; 13 }; 14 15 cargoSha256 = "1x6wchlcxb1frww6y04gfx4idxv9h0g9qfxrhgb6g5qy3bqhqq3p"; 16 17 nativeBuildInputs = [ pkgconfig llvmPackages.libclang clang_39 ]; 18 buildInputs = [ openssl libsodium lzma ]; 19 20 configurePhase = '' 21 export LIBCLANG_PATH="${llvmPackages.libclang}/lib" 22 ''; 23 24 meta = with stdenv.lib; { 25 description = "Data deduplication with compression and public key encryption"; 26 homepage = https://github.com/dpc/rdedup; 27 license = licenses.mpl20; 28 maintainers = with maintainers; [ dywedir ]; 29 platforms = platforms.all; 30 }; 31}