{ lib, nixosTests, fetchFromGitHub, beam27Packages, gitMinimal, pnpm_9, fetchPnpmDeps, pnpmConfigHook, nodejs, tailwindcss_3, esbuild, mixReleaseName ? "domain", # "domain" "web" or "api" }: beam27Packages.mixRelease rec { pname = "firezone-server-${mixReleaseName}"; version = "0-unstable-2025-08-31"; src = "${ fetchFromGitHub { owner = "firezone"; repo = "firezone"; rev = "f86719db19b848ab757995361032c1f2b7927d13"; hash = "sha256-MrW+mnVMi3mOwkcWDsY84rVBaX1qJPmqkecdH8I2ng0="; # This is necessary to allow sending mails via SMTP, as the default # SMTP adapter is current broken: https://github.com/swoosh/swoosh/issues/785 postFetch = '' ${lib.getExe gitMinimal} -C $out apply ${./0000-add-mua.patch} ''; } }/elixir"; pnpmDeps = fetchPnpmDeps { inherit pname version; pnpm = pnpm_9; src = "${src}/apps/web/assets"; fetcherVersion = 1; hash = "sha256-40vtQIBhJNnzdxkAOVAcPN57IuD0IB6LFxGICo68AbQ="; }; pnpmRoot = "apps/web/assets"; preBuild = '' cat >> config/config.exs <> config/runtime.exs <