Unverified Commit dabc45ca authored by oddlama's avatar oddlama
Browse files

firezone-relay: init at unstable-2025-03-15

parent ba5ab8aa
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
  pname = "firezone-relay";
  version = "0-unstable-2025-03-15";
  src = fetchFromGitHub {
    owner = "firezone";
    repo = "firezone";
    rev = "09fb5f927410503b0d6e7fc6cf6a2ba06cb5a281";
    hash = "sha256-qDeXAzOeTenL6OIsun/rEfPMo62mQT7RhJEmqemzMsM=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-uqy4GgYaSX2kM4a37093lHmhvOtNUhkEs6/ZS1bjuYo=";
  sourceRoot = "${src.name}/rust";
  buildAndTestSubdir = "relay";
  RUSTFLAGS = "--cfg system_certs";

  # Required to remove profiling arguments which conflict with this builder
  postPatch = ''
    rm .cargo/config.toml
  '';

  meta = {
    description = "STUN/TURN server for the Firezone zero-trust access platform";
    homepage = "https://github.com/firezone/firezone";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [
      oddlama
      patrickdag
    ];
    mainProgram = "firezone-relay";
  };
}