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
wireguard: 0.0.20180524 -> 0.0.20180531 #41649
Conversation
@GrahamcOfBorg build wireguard-tools |
Failure on aarch64-linux (full log) Attempted: wireguard-tools Partial log (click to expand)
|
Failure on x86_64-linux (full log) Attempted: wireguard-tools Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: wireguard-tools Partial log (click to expand)
|
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec { | |||
|
|||
src = fetchzip { | |||
url = "https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz"; | |||
sha256 = "ff653095cc0e4c491ab6cd095ddf5d1db207f48f947fb92873a73220363f423c"; | |||
sha256 = "0944zxmpx2cs71nxl7rcyhpqlwplkzd7jsf1n66vflngw2sjxm03"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The checksum is calculated over the content of the zip archive as it was unclear whether cgit might regenerate archives resulting in a different hash. nix-prefetch-url --unpack url
can be used to generate those.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. I didn't know Nix could do this. How does it know which type of checksum it is? Does it just trial check all possibilities? Or does that hex string have a type built in somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It depends on the fetcher used. The default one is fetchurl
. Here fetchzip
is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat.
Simple version bump.