Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium 2, 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 rustPlatform.bindgenHook ]; 19 buildInputs = [ openssl libsodium xz ] 20 ++ (lib.optional stdenv.isDarwin Security); 21 22 meta = with lib; { 23 description = "Data deduplication with compression and public key encryption"; 24 homepage = "https://github.com/dpc/rdedup"; 25 license = licenses.mpl20; 26 maintainers = with maintainers; [ dywedir ]; 27 }; 28}