RooSoft

RooSoft OP

In theory, this is exactly what I needed, thank you very much!

Although, it actually crashes on my plain Phoenix Liveview app with added nix files: GitHub - RooSoft/nix_package: Attempt to package a Phoenix LiveView app for Nix · GitHub

Steps I made (note that I started by removing all nix files):

rm *.nix
mix archive.install hex igniter_new
mix igniter.install flakify --package

Result:

** (Protocol.UndefinedError) protocol Enumerable not implemented for type Rewrite (a struct). This protocol is implemented for the following type(s): DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, Jason.OrderedObject, List, Map, MapSet, Phoenix.LiveView.LiveStream, Postgrex.Stream, Range, Req.Response.Async, Stream

Maybe adding to the docs that mix archive.install hex igniter_new is required. I had to figure out that part as I’ve never used igniter in the past.

0
Post #11
RooSoft

RooSoft OP

Works perfectly on brand new projects, though… back at getting things done.

Thank you @munksgaard!

1
Post #12
munksgaard

munksgaard

That’s strange. I didn’t get any errors when I tried to run it in your repo. Do you have any more details on the error, such as a stack trace?

0
Post #13
RooSoft

RooSoft OP

Nevermind… maybe I was in a strange shell state.

Working flawlessly now. Huge thanks to you! :heart:

2
Post #14
RooSoft

RooSoft OP

The project has been updated with code generated by flakify and is thus now in a working state.

https://github.com/RooSoft/nix_package/commit/6de929f04c6424deb4bd2362d909c6ae86c9d7b9

1
Post #15
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?

3
Post #16
onnimonni

onnimonni

Thanks for opening this thread and creating flakify!

I’m not sure if my current setup with phoenix app in NixOS modules is the best one but that’s what I’m using.

Would you be able to add nixos module with systemd service definition in it?

I was able to do everything else manually but the tailwind and rust dependencies seem quite difficult.

1
Post #17
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:

0
Post #18
— All posts loaded —