Create nix derivation with and without flakes#12
Conversation
|
@NelsonVides thanks for the patch! Can you please create a ticket to describe the problem, and attach this PR to it? The ticket has a precise template that helps to understand what is the problem and the expectation, which is not always immediately evident from a PR. |
There was a problem hiding this comment.
The standard nix didn't build so I fixed it build. I also added a standard nix-shell.
While I was in there I also dropped the with lib since it is now consitered an antipattern and it's use is being cleaned from upstream nixpkgs because it slows down calulating the derevation and can have side effects. In general with should be used sparingly and scoped as deeply as possible
I also think this would benefit from having make commands for the builds, & also CI tests to make sure we don't leave this broken and unbuildable accidentally.
|
Correction, @onlyhavecans used flakes at one point and decided to spare herself the complexity and slow evalulations that come with flakes. She moved to using standard nix again with npins for pinning. Flakes do have a lot of hype and you can do some great things if you are really into the Nix language but I find most people I talk to don't use them. |
| description = "Command-line interface for the DNSimple API"; | ||
|
|
||
| inputs = { | ||
| nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; |
There was a problem hiding this comment.
For performance reasons it is recommended to use hydra tarballs, especially for independant repos.
See
https://discourse.nixos.org/t/questions-about-inputs-nixpkgs/69095/14?u=malix
and an example in repo of https://github.com/NixOS/nixos-hardware/blob/6358ff76821101c178e3ab4919a62799bfe3652e/flake.nix#L4
This creates Nix derivations, with and without Flakes. My homeserver is a NixOS box, and I'm currently doing magic systemd-unit+bash-script+curl-with-flags to update my records automatically and this CLI would make things insanely cleaner.
And other than me, once we make this repo public, Nix derivations are just a good installation tooling hopefully useful to tons of people other than myself 🙂
PS: I don't use flakes myself but they're insanely popular in the Nix community, @onlyhavecans uses them :)
Closes #14
📋 Deployment Pre/Post tasks
N/A
N/A