You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to nix so this may be off base but I think spago has an implicit dependency on git since it will clone dependency repositories for building. I was trying to use this package to write a derivation for a nix project and I kept getting Installation failed. Upon upgrading easy-purescript-nix to the newest version that displays the underlying error, it was because git was missing from the nix-build environment. I think this might be a use case for adding it to propagatedBuildInputs in the derivation, which I understand to be where you put dependencies that aren't required directly but will be needed downstream.
The text was updated successfully, but these errors were encountered:
Ah, yeah, and this would be another case where I just don't know enough about what spago tries to do since I only use it in some limited ways. Have you had any luck with trying these? I think you also might even manually use wrapProgram with git in the PATH, but I hope what you suggested works out.
I think I may have tripped this by having a dependency from git in spago. I'm assuming if the package is in the package set it just pulls it in as a tarball or something. I can confirm that adding pkgs.cacert and pkgs.git to my derivation's built inputs resolved the issue and I was able to build the whole project. I'm fairly sure adding it to the propagatedBuildInputs of easy-purescript-nix is the right move, since they aren't really build inputs to any of the tools but more like peer dependencies.
I'm new to nix so this may be off base but I think spago has an implicit dependency on git since it will clone dependency repositories for building. I was trying to use this package to write a derivation for a nix project and I kept getting
Installation failed
. Upon upgrading easy-purescript-nix to the newest version that displays the underlying error, it was because git was missing from the nix-build environment. I think this might be a use case for adding it topropagatedBuildInputs
in the derivation, which I understand to be where you put dependencies that aren't required directly but will be needed downstream.The text was updated successfully, but these errors were encountered: