daywalker90 / sling

A core lightning plugin to automatically rebalance multiple channels.
MIT License
15 stars 3 forks source link

Sling nix #5

Closed RCasatta closed 4 months ago

RCasatta commented 5 months ago

the flake.nix has been initialized with:

nix flake init -t github:ipetkov/crane#quick-start-simple

This allows to build the project with

nix build

Which is useful to integrate the plugin in nix systems

daywalker90 commented 5 months ago

Hi @RCasatta , thank you very much for this contribution. Unfortunately i have 0 experience with nix. I guess it's finally time to look into it 😄

daywalker90 commented 4 months ago

I must say i did not enjoy my first time using nix. The error messages were very confusing and i had to google them. Turns out instead of just running nix build i had to either run this monstrosity: nix --extra-experimental-features nix-command --extra-experimental-features flakes build or edit my config to add this: experimental-features = nix-command flakes before a normal nix build would work.

Anyways i replicated this using crane and successfully build sling with it using nix.

RCasatta commented 4 months ago

thanks for merging, sorry that I forgot to mention the experimental features were needed,