9 rustPlatform.buildRustPackage rec {
10 pname = "proton-vpn-local-agent";
11 version = "0-unstable-2024-10-10";
12 cargoHash = "sha256-yAeqx9zo4xz4g/klo10vMEcecc8npIUY8tkV/nq11WA=";
14 src = fetchFromGitHub {
16 repo = "python-proton-vpn-local-agent";
17 rev = "01332194d217d91a514ecaebcdfbfa3d21ccd1ed";
18 hash = "sha256-I+tbVQzD4xJUsoRF8TU/2EMldVqtfxY3E7PQN3ks0mA=";
21 sourceRoot = "${src.name}/python-proton-vpn-local-agent";
24 # manually install the python binding
25 mkdir -p $out/${python3.sitePackages}/proton/vpn/
26 cp ./target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/libpython_proton_vpn_local_agent.so $out/${python3.sitePackages}/proton/vpn/local_agent.so
30 description = "Proton VPN local agent written in Rust with Python bindings";
31 homepage = "https://github.com/ProtonVPN/python-proton-vpn-local-agent";
32 license = lib.licenses.gpl3Only;
33 platforms = lib.platforms.linux;
34 maintainers = with lib.maintainers; [ sebtm ];