1{ lib, rustPlatform, fetchFromGitHub, stdenv, Security, pkg-config, openssl }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "bindle";
5 version = "0.9.1";
6
7 src = fetchFromGitHub {
8 owner = "deislabs";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-xehn74fqP0tEtP4Qy9TRGv+P2QoHZLxRHzGoY5cQuv0=";
12 };
13
14 postPatch = ''
15 rm .cargo/config
16 '';
17
18 doCheck = false; # Tests require a network
19
20 nativeBuildInputs = [ pkg-config ];
21 buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
22
23 cargoSha256 = "sha256-RECEeo0uoGO5bBe+r++zpTjYYX3BIkT58uht2MLYkN0=";
24
25 cargoBuildFlags = [
26 "--bin" "bindle"
27 "--bin" "bindle-server"
28 "--all-features"
29 ];
30
31 meta = with lib; {
32 description = "Bindle: Aggregate Object Storage";
33 homepage = "https://github.com/deislabs/bindle";
34 license = licenses.asl20;
35 maintainers = with maintainers; [ endocrimes ];
36 platforms = platforms.unix;
37 };
38}
39