NorfairKing / smos

A comprehensive self-management System
https://smos.online
MIT License
294 stars 48 forks source link

Self-sufficient `nix build` is not self-sufficient #251

Closed ksenia-portu closed 1 year ago

ksenia-portu commented 1 year ago

@NorfairKing I wanted to mention, that nix build which supposed to be sufficient for running the server itself via:

$ nix build .#
$ nix develop
nix $ feedback web-server

on my machine (nixos-23.05) still requires 2 more steps:

cp -r ./result/bin/smos-web-server ~/.local/bin/.
cp -r ./result/bin/smos-server ~/.local/bin/.

Probably such instructions need to be added to *.nix

NorfairKing commented 1 year ago

This line is supposed to do that, you definitely don't want to use cp -r ./result/bin/smos-web-server ~/.local/bin/. Did the stack install command succeed?

https://github.com/NorfairKing/smos/blob/82b5121c1f1462159c20d8012b5a89b4c772dcb3/feedback.yaml#L24

ksenia-portu commented 1 year ago

@NorfairKing there were no notification that stack install command didn't succeed, but since there is nothing related to smos in .local/bin I believe it didn't succeed

NorfairKing commented 1 year ago

I can't reproduce this issue. Feel free to reopen if the instructions here don't work as intended: https://docs.smos.online/development/contributing/smos-web-server