RooSoft

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

munksgaard

I’ve just released version v0.3.0 of flakify. Take a look: Flakify — flakify v0.3.0

Also Liked

munksgaard

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

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

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.

Last Post!

munksgaard

munksgaard

Absolutely! It’s on my todo-list, but I’ve had a busy couple of weeks, as both @Zurga and @RooSoft can attest to (sorry for not replying, I haven’t forgotten about you). I’ll keep you updated :slight_smile:

Where Next?

Popular in Questions Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44265 214
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement