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
cockroachdb: 1.19.1 -> 1.19.4 #68156
Conversation
|
||
goPackagePath = "github.com/cockroachdb/cockroach"; | ||
|
||
src = fetchurl { | ||
url = "https://binaries.cockroachdb.com/cockroach-v${version}.src.tgz"; | ||
sha256 = "1vbz5j0y9ri8c99k8fc5rnwigay478p1mac5g402639ilkqd41fc"; | ||
sha256 = "d819167dc109b566511cb6cef9aadc8c4f07b1be6a8b3108f4bbd14808d21faf"; |
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.
This does not look right - try this one rvolosatovs@8c50f09#diff-538ae77f6d84d5f7800d94b0d433dd41R22 ?
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.
Done. Thanks for correcting me! How did you obtain that hash?
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 correct way:
nix-prefetch-url https://binaries.cockroachdb.com/cockroach-v19.1.4.src.tgz
[98.3 MiB DL]
path is '/nix/store/jl9a12xqv3dxb87c5pwjy422gyfap42f-cockroach-v19.1.4.src.tgz'
1bqzs844ildvyh4332vapsqhfkwcvjmgkkmn3i8ndd89q5yic6fq
Note, that there are also nix-prefetch-git
, nix-prefetch-hg
etc. available
However, I'm lazy and most of the time I just modify the hash to something random(but valid), let the build fail and use the hash from the build. It looks something like this(the hash is for a different package):
hash mismatch in fixed-output derivation '/nix/store/91qiinmi5302rrxa1q6qydpzynn8m7l8-tools-6b3d1c9':
wanted: sha256:16cfzmfr9jv8wz0whl433xdm614dk63fzjxv6l1xvkagjmki49iy
got: sha256:0a2xjx9hqkash7fd2qv9hd93wcqdbfrmsdzjd91dwvnk48j61daf
But I would not recommend this approach, since it's extremely error-prone and you can very easily run into issues with e.g. caching
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.
Done. Thanks for correcting me! How did you obtain that hash?
You're welcome 🙂 |
@GrahamcOfBorg build cockroachdb |
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.
Builds and works fine on NixOS
Builds and binary appears to work on macos 10.13 FWIW |
Motivation for this change
Provide the latest available release via the package
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @