nixpkgs/pkgs/tools/backup/rdedup/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
946 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium
2021-03-14 18:12:53 +00:00
, llvmPackages, clang, xz
2019-02-13 10:06:20 +00:00
, Security }:
2017-11-20 09:24:43 +00:00
rustPlatform.buildRustPackage rec {
2019-08-31 11:41:23 +00:00
pname = "rdedup";
2021-09-15 17:18:41 +00:00
version = "3.2.1";
2017-11-20 09:24:43 +00:00
src = fetchFromGitHub {
owner = "dpc";
repo = "rdedup";
2021-09-15 17:18:41 +00:00
rev = "v${version}";
sha256 = "sha256-GEYP18CaCQShvCg8T7YTvlybH1LNO34KBxgmsTv2Lzs=";
2017-11-20 09:24:43 +00:00
};
2021-09-15 17:18:41 +00:00
cargoSha256 = "sha256-I6d3IyPBcUsrvlzF7W0hFM4hcXi4wWro9bCeP4eArHI=";
2017-11-20 09:24:43 +00:00
nativeBuildInputs = [ pkg-config llvmPackages.libclang clang ];
2021-03-14 18:12:53 +00:00
buildInputs = [ openssl libsodium xz ]
2021-01-15 09:19:50 +00:00
++ (lib.optional stdenv.isDarwin Security);
2019-02-13 10:06:20 +00:00
2018-07-30 10:50:51 +00:00
configurePhase = ''
export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib"
2018-07-30 10:50:51 +00:00
'';
2017-11-20 09:24:43 +00:00
meta = with lib; {
2017-11-20 09:24:43 +00:00
description = "Data deduplication with compression and public key encryption";
homepage = "https://github.com/dpc/rdedup";
2017-11-20 09:24:43 +00:00
license = licenses.mpl20;
maintainers = with maintainers; [ dywedir ];
2019-02-13 10:12:01 +00:00
broken = stdenv.isDarwin;
2017-11-20 09:24:43 +00:00
};
}