From cfe7f9dada78a2a4195b445cd9a7b056f9b9672f Mon Sep 17 00:00:00 2001 From: traxys Date: Sat, 29 Jul 2023 11:31:32 +0200 Subject: [PATCH] App inputs to control the app building in Nix --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index 87f1134..948ffba 100644 --- a/flake.nix +++ b/flake.nix @@ -59,6 +59,8 @@ stdenv, makeRustPlatform, wasm-bindgen-cli, + apiServerBase ? "http://localhost:8085", + frontendRoot ? "http://localhost:8080", }: let rustPlatformWasm = makeRustPlatform { rustc = rust; @@ -73,6 +75,9 @@ cargoDeps = rustPlatformWasm.importCargoLock {lockFile = ./Cargo.lock;}; + REGALADE_API_SERVER_BASE = apiServerBase; + REGALADE_FRONTEND_DOMAIN = frontendRoot; + nativeBuildInputs = [ dioxus-cli wasm-bindgen-cli