forked from leanprover-community/NNG4
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlakefile.lean
30 lines (24 loc) · 897 Bytes
/
lakefile.lean
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import Lake
open Lake DSL
def LocalGameServer : Dependency := {
name := `GameServer
src := Source.path "../lean4game/server"
}
def RemoteGameServer : Dependency := {
name := `GameServer
src := Source.git "https://github.com/leanprover-community/lean4game.git" "main" "server"
}
/- Choose dependency depending on the environment variable NODE_ENV -/
open Lean in
#eval (do
let gameServerName :=
if (← IO.getEnv "NODE_ENV") == some "development" then ``LocalGameServer else ``RemoteGameServer
modifyEnv (fun env => Lake.packageDepAttr.ext.addEntry env gameServerName)
: Elab.Command.CommandElabM Unit)
require mathlib from git
"https://github.com/leanprover-community/mathlib4" @ "88e129706828e01b7622d6635af1ca6667e25bac"
package Game where
moreLeanArgs := #["-Dtactic.hygienic=false"]
moreServerArgs := #["-Dtactic.hygienic=false"]
@[default_target]
lean_lib Game