Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / servers / bindle / default.nix
blob8c642db2505579ca3e019aca9f8e1607ab1c0c2d
1 { lib, rustPlatform, fetchFromGitHub, stdenv, Security, pkg-config, openssl }:
3 rustPlatform.buildRustPackage rec {
4   pname = "bindle";
5   version = "0.9.1";
7   src = fetchFromGitHub {
8     owner = "deislabs";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-xehn74fqP0tEtP4Qy9TRGv+P2QoHZLxRHzGoY5cQuv0=";
12   };
14   postPatch = ''
15     rm .cargo/config
16   '';
18   doCheck = false; # Tests require a network
20   nativeBuildInputs = [ pkg-config ];
21   buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
23   cargoHash = "sha256-RECEeo0uoGO5bBe+r++zpTjYYX3BIkT58uht2MLYkN0=";
25   cargoBuildFlags = [
26     "--bin" "bindle"
27     "--bin" "bindle-server"
28     "--all-features"
29   ];
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; [ ];
36     platforms = platforms.unix;
37   };