nix-community / napalm

Support for building npm packages in Nix and lightweight npm registry [maintainer=?]
MIT License
104 stars 17 forks source link

Example usage inside flake.nix #32

Open bobvanderlinden opened 3 years ago

bobvanderlinden commented 3 years ago

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?

jtojnar commented 3 years ago

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.