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