-
Notifications
You must be signed in to change notification settings - Fork 69
default.nix assumes directory is under git source control #12
Comments
Can you elaborate on your use case? |
@Profpatsch I use the niv tool to keep my dependencies organized. It avoids downloading the entire git repository and instead just fetches the specified rev. I prefer this approach to manually keeping several git repositories updated, because it is reproducible and requires much less maintenance. |
Oh, you mean You can overwrite the source with an argument: |
@Profpatsch this command unfortunately fails for me. nix-build lorri/default.nix --arg src /full/path/to/lorri
This is kind of my problem: There does not seem to be an obvious way to build/install lorri from a directory that isn't git version-controlled. What does the |
You have to replace the paths by the paths you need of course.
We don’t have a .git directory in the tarball, it works. |
Interesting. Trying to build lorri seems to fail in ways that I don't fully comprehend. I suspect it might have to do with the files being stored in the nix store, or symlinking issues. (related to my personal setup) Still, I am interested in why lorri chooses to have In any case, this is no longer relevant to the original issue. |
It’s a default argument.
will be
will be You can try it out in |
@Profpatsch Yes I understand that. But why would you even try to |
You have to ask @grahamc ;). I agree with you that it’s not a great solution, because |
The current
default.nix
file assumes that lorri is always installed from the project git directory. This causes major headaches when trying to use lorri with tools like niv or packaging it.Maybe it would be possible to support an alternative "portable"
default.nix
file?The text was updated successfully, but these errors were encountered: