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
Support for buildGoModule #3
Comments
I have not tested that function myself yet, but from scanning the source code of the function, it seems like you should be able to do something similar as for Rust crates, where there is an attribute containing the fixed-output derivation that uses the sha attribute: |
Yes. This is the way it works:
|
I looked into it, but unlike Rust's cargo dependencies, the way the |
Would it help to export an |
If I have an idea on how to make nix-prefetch more flexible to be able to handle If it has high priority for you and you don't mind changing the code behind |
@kalbasit Sorry. I am busy on the weekend. |
I did found a way to make nix-prefetch work for
I verified the result with:
This works because nix-prefetch support any fetcher function, even those defined on-the-fly, as long as it takes the hash as an argument and produces a fixed-output derivation. So I leveraged that to create a fetcher function specialized to just fetch |
I am closing this issue, because I don't think nix-prefetch can do any better than |
It might be obvious to initiated people, but for those trying to run this on a private package (with a On nixpkgs 23.11 and later
On nixpkgs 23.05 and earlier
|
Thanks for writing this tool. It would be create if it would also support
modSha256
of our new buildGoModule function.cc @kalbasit
The text was updated successfully, but these errors were encountered: