{ rustPlatform, pkg-config, lib, git, }: let inherit (lib) getExe; inherit (lib.sources) sourceByRegex; inherit (builtins) fromTOML readFile; src = sourceByRegex ../. ["Cargo.*" "(src|redis-certificates)(/.*)?"]; version = (fromTOML (readFile ../Cargo.toml)).package.version; in rustPlatform.buildRustPackage rec { pname = "haze"; inherit src version; GIT_BINARY = getExe git; cargoLock = { lockFile = ../Cargo.lock; outputHashes = { "hyper-reverse-proxy-0.5.2-dev" = "sha256-+ebi4FVVkiOpf75e8K5oGkHJBYQjLNJhUPNj+78zd7Q="; }; }; }