App inputs to control the app building in Nix
This commit is contained in:
parent
81b905aaa5
commit
cfe7f9dada
1 changed files with 5 additions and 0 deletions
|
|
@ -59,6 +59,8 @@
|
||||||
stdenv,
|
stdenv,
|
||||||
makeRustPlatform,
|
makeRustPlatform,
|
||||||
wasm-bindgen-cli,
|
wasm-bindgen-cli,
|
||||||
|
apiServerBase ? "http://localhost:8085",
|
||||||
|
frontendRoot ? "http://localhost:8080",
|
||||||
}: let
|
}: let
|
||||||
rustPlatformWasm = makeRustPlatform {
|
rustPlatformWasm = makeRustPlatform {
|
||||||
rustc = rust;
|
rustc = rust;
|
||||||
|
|
@ -73,6 +75,9 @@
|
||||||
|
|
||||||
cargoDeps = rustPlatformWasm.importCargoLock {lockFile = ./Cargo.lock;};
|
cargoDeps = rustPlatformWasm.importCargoLock {lockFile = ./Cargo.lock;};
|
||||||
|
|
||||||
|
REGALADE_API_SERVER_BASE = apiServerBase;
|
||||||
|
REGALADE_FRONTEND_DOMAIN = frontendRoot;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
dioxus-cli
|
dioxus-cli
|
||||||
wasm-bindgen-cli
|
wasm-bindgen-cli
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue