Skip to content

blink-cmp build fails due to SSL certificate errors with MITM proxy and NIX_SSL_CERT_FILE #1152

@Jeomhps

Description

@Jeomhps

I have confirmed that this is a bug related to nvf

  • This is a bug, and not an user error or a support request. I understand that my issue will be closed if it is not a bug in nvf.
  • I have checked the issues tab and confirmed that my issue has not yet been reported. I understand that my issue will be closed if it is a duplicate.

Description

In a work environment using a MITM proxy with self-signed certificates, the blink-cmp package fails to build. The underlying mechanism appears to use Python's requests library, which does not respect the NIX_SSL_CERT_FILE environment variable or the PKI certificates configured in the NixOS configuration file. This results in SSL errors and a failed build.

I am unsure whether this is an issue with the nvf flake or the blink-cmp package in nixpkgs, as I am relatively new to Nix.

Unfortunately, I can't provide any log nor screenshots because of the nature of the work environment.

Installation Method

NixOS Module (nixosModules.default)

Installation Method (Other)

No response

nvf Version

master

Reproduction steps

  1. Set up a MITM proxy that uses a self-signed certificate.
  2. Add the proxy's certificate to the NixOS configuration file (e.g., /etc/nixos/configuration.nix).
  3. Rebuild the system to ensure the certificate is in use:
    sudo nixos-rebuild switch
  4. Add the nvf flake to your Nix configuration and enable blink-cmp.
  5. Attempt to build the package. The build should fail with SSL certificate errors, as requests does not recognize the certificates provided by NIX_SSL_CERT_FILE or the NixOS configuration.

Expected behavior

he build should succeed, with blink-cmp respecting the certificates provided by NIX_SSL_CERT_FILE or the NixOS configuration, allowing it to communicate through the MITM proxy.

Actual Behavior

The build fails with SSL errors, as requests does not use the provided certificates, preventing the package from being built in a proxied environment.

System Information

- system: NixOS
- host os: NixOS-WSL
- multi-user: no
- sandbox: yes
- version: 25.05
- nixpkgs: unstable

Relevant log output

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions