App inputs to control the app building in Nix

This commit is contained in:
traxys 2023-07-29 11:31:32 +02:00
parent 81b905aaa5
commit cfe7f9dada

View file

@ -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