mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
40 lines
855 B
Nix
40 lines
855 B
Nix
{ lib, rustPlatform, fetchFromGitHub, 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 ];
|
|
|
|
cargoHash = "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 = [ ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|
|
|