biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / by-name / pr / proton-vpn-local-agent / package.nix
blobe3b310d744b005f5483301395936f6b9c8fc99b6
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   rustPlatform,
6   python3,
7 }:
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 {
15     owner = "ProtonVPN";
16     repo = "python-proton-vpn-local-agent";
17     rev = "01332194d217d91a514ecaebcdfbfa3d21ccd1ed";
18     hash = "sha256-I+tbVQzD4xJUsoRF8TU/2EMldVqtfxY3E7PQN3ks0mA=";
19   };
21   sourceRoot = "${src.name}/python-proton-vpn-local-agent";
23   installPhase = ''
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
27   '';
29   meta = {
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 ];
35   };