alpha
Login
or
Join now
alice.pds.demo.boltless.dev
/
core
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
2
Pulls
1
Pipelines
add flake apps for watchers
author
Akshay
date
2 years ago
(Feb 1, 2025, 7:04 PM UTC)
commit
ecee8452
ecee8452e7086dd23eabbcf49f1196f5f99d7778
parent
bb1e59c9
bb1e59c915c5c32f4d383f14ec2081cade538913
+19
-1
2 changed files
Expand all
Collapse all
Unified
Split
appview
state
state.go
flake.nix
+1
-1
appview/state/state.go
View file
Reviewed
···
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
View file
Reviewed
···
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
}