New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
builtins.toPath does not return a path #1074
Comments
Probably related:
It would be the expected natural behaviour for me that it return a path object. However, |
The gist of this issue:
Workaround is to use:
|
Here's an
|
@Warbo You can just write |
Btw |
@veprbl Hah, never thought to check that! Thanks |
Despite documentation saying
I get
I see that this was already requested in #47 , but then later reverted in 17dc306 .
I see that most of the uses of toPath in nixpkgs employ a hack like
which works.
I've also tried to re-revert the original patch and evaluate nixpkgs and the only thing that seems to be broken is
texlive
fails the evaluationThis I don't know how to fix.
Also
lib.isStorePath
needs a simple fix to wrap thebuiltins.storeDir
withbuiltins.toPath
call.The text was updated successfully, but these errors were encountered: