-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlakefile.lean
33 lines (26 loc) · 857 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
31
32
33
import Lake
open Lake DSL
/-
-- Configuration file copied from NNG4.
-- See: https://github.com/hhu-adam/NNG4
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"
package filtergame {}
@[default_target]
lean_lib FilterGame {}