Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, rustPlatform, fetchFromGitHub, stdenv, Security, pkg-config, openssl }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "bindle"; 5 version = "0.8.1"; 6 7 src = fetchFromGitHub { 8 owner = "deislabs"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-Mc3LaEOWx8cN7g0r8CtWkGZ746gAXTaFmAZhEIkbWgM="; 12 }; 13 14 doCheck = false; # Tests require a network 15 16 nativeBuildInputs = [ pkg-config ]; 17 buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security; 18 19 cargoSha256 = "sha256-brsemnw/9YEsA2FEIdYGmQMdlIoT1ZEMjvOpF44gcRE="; 20 21 cargoBuildFlags = [ 22 "--bin" "bindle" 23 "--bin" "bindle-server" 24 "--all-features" 25 ]; 26 27 meta = with lib; { 28 description = "Bindle: Aggregate Object Storage"; 29 homepage = "https://github.com/deislabs/bindle"; 30 license = licenses.asl20; 31 maintainers = with maintainers; [ endocrimes ]; 32 platforms = platforms.unix; 33 }; 34} 35