Closed paluh closed 2 years ago
P.S.
Maybe we can extract nodejs
argument into a separate one like this in napalm
default.nix
:
{ pkgs? import ./nix, nodejs? pkgs.nodejs }:
Do you think it is sensible proposition?
This was implemented in https://github.com/nix-community/napalm/pull/38:
napalm.buildPackage ./. {
nodejs = …;
}
Hi,
Sorry for this basic question - I'm still learning Nix/NixOS and I've not used
niv
at all. I want to pass my custom and pinnednodejs
and build a Node.js package based on that.Let me start with signature reading.
The main
napalm
signature is:I'm not able to easily deduce what are the real inputs for
napalm
from that and how to passnodejs
. In./nix/default.nix
I find this expression:Which again doesn't say me more what are the inputs (it even includes the whole custom
nixpkgs
) but provides a hint aboutnodejs
.sources
together withsources.nixpkgs
are the internalnapalm
dependencies and that I should not really care about them?Going back to the question. I was able to pass
nodejs
to napalm by using this code:nodejs
version? Is it be possible to sipmlify it somehow?Thanks again for building this nice tool!