forked from tangled.org/core
this repo has no description

add flake apps for watchers

Changed files
+19 -1
appview
state
+1 -1
appview/state/state.go
···
return nil, err
}
-
return &State{db, auth, nil}, nil
}
func (s *State) Login(w http.ResponseWriter, r *http.Request) {
···
return nil, err
}
+
return &State{db, auth}, nil
}
func (s *State) Login(w http.ResponseWriter, r *http.Request) {
+18
flake.nix
···
];
};
});
};
}
···
];
};
});
+
apps = forAllSystems (system:
+
let
+
pkgs = nixpkgsFor."${system}";
+
air-watcher = name: pkgs.writeShellScriptBin "run"
+
''
+
${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"
+
'';
+
in
+
{
+
watch-appview = {
+
type = "app";
+
program = ''${air-watcher "appview"}/bin/run'';
+
};
+
watch-knotserver = {
+
type = "app";
+
program = ''${air-watcher "knotserver"}/bin/run'';
+
};
+
});
};
}