12 rustPlatform.buildRustPackage rec {
16 src = fetchFromGitHub {
20 hash = "sha256-l9dnyA4Zo4jlbiCMRzUqW3NkiploVpmvxz9i896JkXU=";
23 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
27 cargoHash = "sha256-6eYOSSlswJGR2IrFo17qVnwI+h2FkyTjLFvwf62nG2c=";
29 setupHook = substituteAll {
30 src = ./setup-hook.sh;
32 ephemeral_port_reserve = python3Packages.ephemeral-port-reserve;
35 passthru.fetch = callPackage ./fetch.nix { };
38 description = "A MITM caching proxy for use in nixpkgs";
39 homepage = "https://github.com/chayleaf/mitm-cache#readme";
40 license = licenses.mit;
41 maintainers = with maintainers; [ chayleaf ];
42 mainProgram = "mitm-cache";