rdedup: migrate to bindgenHook
This commit is contained in:
parent
656eb1cbd9
commit
db7ee2e5de
@ -1,5 +1,5 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium
|
||||||
, llvmPackages, clang, xz
|
, xz
|
||||||
, Security }:
|
, Security }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -15,14 +15,10 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "sha256-I6d3IyPBcUsrvlzF7W0hFM4hcXi4wWro9bCeP4eArHI=";
|
cargoSha256 = "sha256-I6d3IyPBcUsrvlzF7W0hFM4hcXi4wWro9bCeP4eArHI=";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config llvmPackages.libclang clang ];
|
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
|
||||||
buildInputs = [ openssl libsodium xz ]
|
buildInputs = [ openssl libsodium xz ]
|
||||||
++ (lib.optional stdenv.isDarwin Security);
|
++ (lib.optional stdenv.isDarwin Security);
|
||||||
|
|
||||||
configurePhase = ''
|
|
||||||
export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Data deduplication with compression and public key encryption";
|
description = "Data deduplication with compression and public key encryption";
|
||||||
homepage = "https://github.com/dpc/rdedup";
|
homepage = "https://github.com/dpc/rdedup";
|
||||||
|
Loading…
Reference in New Issue
Block a user