Closed seanybaggins closed 1 year ago
Actually think I may have solved my problem. Did not have source $setup
in my bash scripts.
It sounds like some part of your code uses nproc
and git
. If so, you should probably find the appropriate packages for those from nixpkgs (e.g. nixpkgs.git
) and include those as native inputs. Right now I'm not sure what git
or nproc
you're using, if those errors went away, maybe you're just using whatever happens to be on your PATH. Also, you need to do source $setup
or source $stdenv/setup
to actually get the native inputs on your PATH.
P.S. Actually, thinking about it further, I don't really know what you're doing, but if it were my project I'd try to avoid using nproc
and git
. You can use $NIX_BUILD_CORES
to get Nix's recommendation for the number of cores to use, and you can pass Git commit info to your script using environment variables.
Here is my
build.nix
fileWhen I try to build, I can see that the script is getting called by git and nproc commands are not found