nixpkgs/pkgs/servers/bindle/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

39 lines
914 B
Nix

{ 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;
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;
};
}