Closed stephane-rolland closed 4 years ago
Try deleting the Cargo.lock.
It's also distinctly possible that in your Nix version, the rust version is too old. This seems implausible to me but rust moves very fast and it could have happened in the intervening near year between 19.09 and today. It's likely possible to provide an overridden nixpkgs to the default.nix with a newer rust and cargo, which is also worth a try, given we take nixpkgs as a parameter (not sure who has those packaged cuz I usually use rustup on another distro but I assume someone's done it).
And my final hypothesis is that it's possibly accidentally fixed now and you should give it another shot. ;-)
This has been built and tested with nix-build --arg nixpkgs 'import (builtins.fetchTarball "https://nixos.org/channels/nixos-19.09/nixexprs.tar.xz")' --show-trace
. Let me know if it works for you.
The problem was that nixos-19.09 ships too old of a rustc and cargo, so I switched to nixpkgs-mozilla, except that ALSO has a bug preventing building on nixos-19.09, which I fixed, and I also switched to naersk. It was a whole thing. Anyway this should be resolved.
git pull
to get the modifications, followed by nix-build
, and then it builds nicely to /nix/store/zpm9g7qvpj67b2yv1gfwz7pdydfrki22-nix-doc-0.3.1
.
First test nix-doc callPackage /path/to/nixpkgs
successful.
Thanks.
With nixos 19.09, I cannot build the project. I git clone the project, then run nix-build.
It outputs a rust error, related to packaging.
Any idea how to fix this ?
I'm really looking forward trying
nix-doc
. Seems like a promising tool.