mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
38 lines
1014 B
Nix
38 lines
1014 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium
|
|
, llvmPackages, clang, xz
|
|
, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rdedup";
|
|
version = "3.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dpc";
|
|
repo = "rdedup";
|
|
rev = "rdedup-v${version}";
|
|
sha256 = "0y34a3mpghdmcb2rx4z62q0s351bfmy1287d75mm07ryfgglgsd7";
|
|
};
|
|
|
|
cargoSha256 = "1k0pl9i7zf1ki5ch2zxc1fqsf94bxjlvjrkh0500cycwqcdys296";
|
|
|
|
cargoPatches = [
|
|
./v3.1.1-fix-Cargo.lock.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config llvmPackages.libclang clang ];
|
|
buildInputs = [ openssl libsodium xz ]
|
|
++ (lib.optional stdenv.isDarwin Security);
|
|
|
|
configurePhase = ''
|
|
export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Data deduplication with compression and public key encryption";
|
|
homepage = "https://github.com/dpc/rdedup";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ dywedir ];
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|