mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, libsodium
|
|
, llvmPackages, clang_39, lzma
|
|
, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
name = "rdedup-${version}";
|
|
version = "3.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dpc";
|
|
repo = "rdedup";
|
|
rev = "rdedup-v${version}";
|
|
sha256 = "0y34a3mpghdmcb2rx4z62q0s351bfmy1287d75mm07ryfgglgsd7";
|
|
};
|
|
|
|
cargoSha256 = "19j1xscchnckqq1nddx9nr9wxxv124ab40l4mdalqbkli4zd748j";
|
|
|
|
patches = [
|
|
./v3.1.1-fix-Cargo.lock.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ pkgconfig llvmPackages.libclang clang_39 ];
|
|
buildInputs = [ openssl libsodium lzma ]
|
|
++ (stdenv.lib.optional stdenv.isDarwin Security);
|
|
|
|
configurePhase = ''
|
|
export LIBCLANG_PATH="${llvmPackages.libclang}/lib"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Data deduplication with compression and public key encryption";
|
|
homepage = https://github.com/dpc/rdedup;
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ dywedir ];
|
|
platforms = platforms.all;
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|