I compiled a package from my private git repository in NixOS. How can I install that package on a NixOS machine? I want to install my package and keep it private. Is there a command to install a private package in NixOS?
Constraint: I don't want to make my package publicly available on Nixpkgs.
Absolutely, you can use all the build tools available inside nixpkgs in your private
configuration.nix. One easy way is toenvironment.systemPackages,users.users.<username>.packages, or someservices.<name>.package) like any other package,For example, in case of a Python package the entry in the package list would look something like this:
(As an aside, usually nixpkgs builds are from source, not simply copying an already built package. I'd recommend that, to make it easier to port your package to future versions of nixpkgs without manually recompiling.)