at 22.05-pre 33 lines 946 B view raw
1{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium 2, llvmPackages, clang, xz 3, Security }: 4 5rustPlatform.buildRustPackage rec { 6 pname = "rdedup"; 7 version = "3.2.1"; 8 9 src = fetchFromGitHub { 10 owner = "dpc"; 11 repo = "rdedup"; 12 rev = "v${version}"; 13 sha256 = "sha256-GEYP18CaCQShvCg8T7YTvlybH1LNO34KBxgmsTv2Lzs="; 14 }; 15 16 cargoSha256 = "sha256-I6d3IyPBcUsrvlzF7W0hFM4hcXi4wWro9bCeP4eArHI="; 17 18 nativeBuildInputs = [ pkg-config llvmPackages.libclang clang ]; 19 buildInputs = [ openssl libsodium xz ] 20 ++ (lib.optional stdenv.isDarwin Security); 21 22 configurePhase = '' 23 export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib" 24 ''; 25 26 meta = with lib; { 27 description = "Data deduplication with compression and public key encryption"; 28 homepage = "https://github.com/dpc/rdedup"; 29 license = licenses.mpl20; 30 maintainers = with maintainers; [ dywedir ]; 31 broken = stdenv.isDarwin; 32 }; 33}