I am using nix v2.7 on macOS. I am trying to build a package from a private git repository. I am a bit confused by the following error message from nix build when building my flake.
I have added my ssh key with ssh-add. It’s my understanding this should fetch the source using my ssh key.
Any insights?
Thanks.
Initialized empty Git repository in /nix/store/xaykqlvxw86jn8qka4s6yf4b24hdzv22-python-libs-fcb7e8a/.git/
error: cannot run ssh: No such file or directory
fatal: unable to fork
error: cannot run ssh: No such file or directory
fatal: unable to fork
error: cannot run ssh: No such file or directory
fatal: unable to fork
pkgs.fetchgit doesn’t work with private repos because of the Nix build sandbox, but builtins.fetchGit does because it’s performed by the evaluator as your user. They’re slightly different things.
I changed the code to use builtins.fetchGit and got the following error message.
error: in pure evaluation mode, 'fetchTree' requires a locked input,
My code is an a flake. I am not to sure how to interpret the error message here.
Is there some documentation you can point me to so I can better understand locked input in this context?
My private repo have many python program.I want to build only one python program from my private repo.how can i specify one python program to build in derivation.
please help