nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 799 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 pkg-config, 6 openssl, 7 libsodium, 8 xz, 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "rdedup"; 13 version = "3.2.1"; 14 15 src = fetchFromGitHub { 16 owner = "dpc"; 17 repo = "rdedup"; 18 rev = "v${version}"; 19 sha256 = "sha256-GEYP18CaCQShvCg8T7YTvlybH1LNO34KBxgmsTv2Lzs="; 20 }; 21 22 cargoHash = "sha256-JpsUceR9Y3r6RiaLOtbgBUrb6eoan7fFt76U9ztQoM8="; 23 24 nativeBuildInputs = [ 25 pkg-config 26 rustPlatform.bindgenHook 27 ]; 28 buildInputs = [ 29 openssl 30 libsodium 31 xz 32 ]; 33 34 meta = { 35 description = "Data deduplication with compression and public key encryption"; 36 mainProgram = "rdedup"; 37 homepage = "https://github.com/dpc/rdedup"; 38 license = lib.licenses.mpl20; 39 maintainers = with lib.maintainers; [ dywedir ]; 40 }; 41}