nixpkgs/pkgs/servers/bindle/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
934 B
Nix
Raw Normal View History

2022-11-06 23:14:01 +00:00
{ lib, rustPlatform, fetchFromGitHub, stdenv, Security, pkg-config, openssl }:
2022-10-23 19:52:34 +00:00
rustPlatform.buildRustPackage rec {
pname = "bindle";
2023-09-03 13:12:43 +00:00
version = "0.9.1";
2022-10-23 19:52:34 +00:00
src = fetchFromGitHub {
owner = "deislabs";
repo = pname;
rev = "v${version}";
2023-09-03 13:12:43 +00:00
sha256 = "sha256-xehn74fqP0tEtP4Qy9TRGv+P2QoHZLxRHzGoY5cQuv0=";
2022-10-23 19:52:34 +00:00
};
2023-09-05 14:36:07 +00:00
postPatch = ''
rm .cargo/config
'';
2022-10-23 19:52:34 +00:00
doCheck = false; # Tests require a network
2022-11-06 23:14:01 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
2022-10-23 19:52:34 +00:00
2023-09-03 13:12:43 +00:00
cargoSha256 = "sha256-RECEeo0uoGO5bBe+r++zpTjYYX3BIkT58uht2MLYkN0=";
2022-10-23 19:52:34 +00:00
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; [ ];
2022-10-23 19:52:34 +00:00
platforms = platforms.unix;
};
}