about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/bindle/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/bindle/default.nix')
-rw-r--r--nixpkgs/pkgs/servers/bindle/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/bindle/default.nix b/nixpkgs/pkgs/servers/bindle/default.nix
new file mode 100644
index 000000000000..1544a70e98fb
--- /dev/null
+++ b/nixpkgs/pkgs/servers/bindle/default.nix
@@ -0,0 +1,39 @@
+{ lib, rustPlatform, fetchFromGitHub, stdenv, Security, pkg-config, openssl }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "bindle";
+  version = "0.9.1";
+
+  src = fetchFromGitHub {
+    owner = "deislabs";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-xehn74fqP0tEtP4Qy9TRGv+P2QoHZLxRHzGoY5cQuv0=";
+  };
+
+  postPatch = ''
+    rm .cargo/config
+  '';
+
+  doCheck = false; # Tests require a network
+
+  nativeBuildInputs = [ pkg-config ];
+  buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
+
+  cargoSha256 = "sha256-RECEeo0uoGO5bBe+r++zpTjYYX3BIkT58uht2MLYkN0=";
+
+  cargoBuildFlags = [
+    "--bin" "bindle"
+    "--bin" "bindle-server"
+    "--all-features"
+  ];
+
+  meta = with lib; {
+    description = "Bindle: Aggregate Object Storage";
+    homepage = "https://github.com/deislabs/bindle";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ endocrimes ];
+    platforms = platforms.unix;
+  };
+}
+