RooSoft
Creating a Nix package for a basic Liveview app
Simple question from someone who loves both NixOS and Elixir…
Is there someone around here that is able to do these two simple things:
- Generate a basic Liveview app
- Package it for Nix, ideally in a flake
That’s it… no extra code whatsoever. I’ve been spending a unholy amount of time trying to realize that achievement but have been failing so far.
The main problem revolves around the fact that the heroicons dependency is directly linked to GitHub instead of the hex package manager.
My whole infra is based on NixOS, so, I am considering quitting Elixir just to be able to get things done.
Marked As Solved
munksgaard
I’ve just released version v0.3.0 of flakify. Take a look: Flakify — flakify v0.3.0
Also Liked
munksgaard
That’s great to hear, thanks for letting me know.
You mention in your original post that your infra is based on NixOS. Can you go into more depth on what it is that you desire? I think there’s a potential for Flakify to support generating NixOS modules or even deploy-rs based deployments, but what does your setup look like? What do you need?
NobbZ
Do you mid sharing a minimal project that shows the problem?
I do not remember having had any problems when I packaged a small, fresh from the generator, application about a year ago.
munksgaard
I have such a project here: GitHub - Munksgaard/flakify · GitHub
Right now, it just creates a flake.nix containing a devshell, but I have plans to extend it with a package output building the phoenix application.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #code-sync
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








