napalm icon indicating copy to clipboard operation
napalm copied to clipboard

Example usage inside flake.nix

Open bobvanderlinden opened this issue 3 years ago • 1 comments

I'm trying to use napalm inside my flake.nix. However I cannot understand how overlays are supposed to work this way. I kind of expected a lib function. The readme only talks about using niv, but my project already uses flakes as-is. Could you give an example in the readme?

bobvanderlinden avatar Mar 23 '21 09:03 bobvanderlinden

The simplest is probably creating a new nixpkgs instance with overlay added to overlays.

https://github.com/jtojnar/nixfiles/blob/b062127e9dc616249fb5e39204ae910c3470ed6b/flake.nix#L50-L58

Then, you will be able to use it through pkgs.napalm.

jtojnar avatar Apr 24 '21 16:04 jtojnar