diff options
Diffstat (limited to 'pkgs/servers/bindle')
-rw-r--r-- | pkgs/servers/bindle/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/servers/bindle/default.nix b/pkgs/servers/bindle/default.nix new file mode 100644 index 0000000000000..f8e0db9e40c76 --- /dev/null +++ b/pkgs/servers/bindle/default.nix @@ -0,0 +1,34 @@ +{ lib, rustPlatform, fetchFromGitHub, pkgs, stdenv, Security }: + +rustPlatform.buildRustPackage rec { + pname = "bindle"; + version = "0.8.1"; + + src = fetchFromGitHub { + owner = "deislabs"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-Mc3LaEOWx8cN7g0r8CtWkGZ746gAXTaFmAZhEIkbWgM="; + }; + + doCheck = false; # Tests require a network + + buildInputs = with pkgs; [ pkg-config openssl_3 ] ++ lib.optional stdenv.isDarwin Security; + + cargoSha256 = "sha256-brsemnw/9YEsA2FEIdYGmQMdlIoT1ZEMjvOpF44gcRE="; + + 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; + }; +} + |