SimulaVR / Simula

Linux VR Desktop
MIT License
2.91k stars 87 forks source link

Binary distribution format #64

Closed lboklin closed 4 years ago

lboklin commented 5 years ago

Need to figure out a way to distribute the application for testing (and future packaging) without making the tester compile everything perself or installing/compiling 9 241 dependencies (although hopefully we can keep our dependencies lower than that).

Options:

  1. Static compilation. This would be the most preferable option, but GHC makes this very hard and Stack isn't very interested in helping. Searching for static compilation of a Haskell project will give you a headache. Best lead I got talked about using an Alpine Linux Docker image with a special build of GHC.
  2. Ship the binary together with all deps bundled internally. Neither elegant nor efficient.
  3. Nix package. If we can make this work that would be an elegant solution, but since we depend on mesa we're going to be affected by https://github.com/NixOS/nixpkgs/issues/9415
  4. Flatpak - https://szibele.com/stakpak-flatpak-a-haskell-stack-app-into-flathub/
  5. AppImage?
georgewsinger commented 5 years ago

Another option (6) might be to make distro specific builds of Simula for Ubuntu & Arch.

georgewsinger commented 5 years ago

I'm unable to get Simula to build with --nix due to the infamous c2hs: Simula/WaylandServer.chi not found error. I'm triaging this for now until we get wlroots incorporated into Simula (which should completely eliminate the need for simula-wayland all together).