tangled
alpha
login
or
join now
tjh.dev
/
core
forked from
tangled.org/core
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
add flake apps for watchers
oppi.li
1 year ago
9b9c40d6
8be01c94
+19
-1
2 changed files
expand all
collapse all
unified
split
appview
state
state.go
flake.nix
+1
-1
appview/state/state.go
···
36
36
return nil, err
37
37
}
38
38
39
39
-
return &State{db, auth, nil}, nil
39
39
+
return &State{db, auth}, nil
40
40
}
41
41
42
42
func (s *State) Login(w http.ResponseWriter, r *http.Request) {
+18
flake.nix
···
53
53
];
54
54
};
55
55
});
56
56
+
apps = forAllSystems (system:
57
57
+
let
58
58
+
pkgs = nixpkgsFor."${system}";
59
59
+
air-watcher = name: pkgs.writeShellScriptBin "run"
60
60
+
''
61
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
62
+
'';
63
63
+
in
64
64
+
{
65
65
+
watch-appview = {
66
66
+
type = "app";
67
67
+
program = ''${air-watcher "appview"}/bin/run'';
68
68
+
};
69
69
+
watch-knotserver = {
70
70
+
type = "app";
71
71
+
program = ''${air-watcher "knotserver"}/bin/run'';
72
72
+
};
73
73
+
});
56
74
};
57
75
}