this repo has no description

add flake apps for watchers

Akshay 9b9c40d6 8be01c94

Changed files
+19 -1
appview
state
+1 -1
appview/state/state.go
··· 36 return nil, err 37 } 38 39 - return &State{db, auth, nil}, nil 40 } 41 42 func (s *State) Login(w http.ResponseWriter, r *http.Request) {
··· 36 return nil, err 37 } 38 39 + return &State{db, auth}, nil 40 } 41 42 func (s *State) Login(w http.ResponseWriter, r *http.Request) {
+18
flake.nix
··· 53 ]; 54 }; 55 }); 56 }; 57 }
··· 53 ]; 54 }; 55 }); 56 + apps = forAllSystems (system: 57 + let 58 + pkgs = nixpkgsFor."${system}"; 59 + air-watcher = name: pkgs.writeShellScriptBin "run" 60 + '' 61 + ${pkgs.air}/bin/air -c /dev/null -build.cmd "${pkgs.go}/bin/go build -o ${name}.out ./cmd/${name}/main.go" -build.bin "./${name}.out" 62 + ''; 63 + in 64 + { 65 + watch-appview = { 66 + type = "app"; 67 + program = ''${air-watcher "appview"}/bin/run''; 68 + }; 69 + watch-knotserver = { 70 + type = "app"; 71 + program = ''${air-watcher "knotserver"}/bin/run''; 72 + }; 73 + }); 74 }; 75 }