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
Crystal: 0.24.2 -> 0.25.0 #41834
Crystal: 0.24.2 -> 0.25.0 #41834
Conversation
@GrahamcOfBorg build crystal |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: crystal Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: crystal Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: crystal Partial log (click to expand)
|
@GrahamcOfBorg build mint |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: mint Partial log (click to expand)
|
mint failed to build for me, I have not checked if it failed before. |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: mint Partial log (click to expand)
|
Failure on x86_64-linux (full log) Attempted: mint Partial log (click to expand)
|
Yeah, looks like there are some incompatible changes in 0.25, one of them is removal of |
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.
Besides the mint issue, I have some comments
|
||
src = fetchurl { | ||
url = "https://github.com/crystal-lang/crystal/archive/${version}.tar.gz"; | ||
sha256 = "1l7nrrfgz1yxxjphypwzlxj6dbari20p71zb4l0gix09lmas8l6y"; | ||
sha256 = "1pnx21ky6cqfyv6df4mmjnyd1yh1bvcqkdzq6f0mk0yrkcl57k3q"; | ||
}; | ||
|
||
prebuiltName = "crystal-0.24.2-1"; |
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.
I think we can update prebuilt binaries to 0.25 now? As it have been released 10 hours ago
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.
sounds good.
@@ -54,9 +54,13 @@ stdenv.mkDerivation rec { | |||
makeFlags = [ "CRYSTAL_CONFIG_VERSION=${version}" | |||
"FLAGS=--no-debug" | |||
"release=1" | |||
"all" "docs" |
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.
Hmm... why move make docs
to postBuild
?
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.
Because you couldn't make docs
with the old crystal, so the new crystal had to be built first. We probably should disable paralell builds for this too.
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.
Or we can update the prebuilt binary version, right?
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.
exactly, that just wasn't available at the time.
Maybe |
@sifmelcara should all be working now |
Maybe we should ask mint's maintainer to release a version that is compatible to crystal 0.25? |
OK, asked him, and he'll release a new version when kemalcr/kemal#452 is merged. So it'll take a bit longer still. |
Mint 0.0.4 was just released, so I think we're ready for takeoff 💃 |
wrapProgram $out/bin/crystal \
+ --suffix PATH : ${clang}/bin \
--suffix CRYSTAL_PATH : lib:$out/lib/crystal \ Why add clang to crystal's Besides this, looks good to me (tested on NixOS x86_64) |
Basically, this allows you to use |
Ok. I think this is ready to get merged but you may need to squash the commits into 3 commits (crystal, shards, mint) :) |
Done :) |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)