Skip to content
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

Vendor in Nix derivation for bitwuzla-0.3.0 #7

Merged
merged 10 commits into from
Jan 10, 2024
Merged

Conversation

RyanGlScott
Copy link
Contributor

Fixes #6.

@RyanGlScott RyanGlScott requested a review from kquick January 8, 2024 18:23
Copy link
Contributor Author

@RyanGlScott RyanGlScott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not very experienced with Nix flakes, so I'd definitely appreciate a careful review here.

Comment on lines 5 to 19
, stdenv ? pkgs.stdenv
, fetchFromGitHub ? pkgs.fetchFromGitHub
, lib ? pkgs.lib
, python3 ? pkgs.python3
, meson ? pkgs.meson
, ninja ? pkgs.ninja
, git ? pkgs.git
, gmp ? pkgs.gmp
, gtest ? pkgs.gtest
, cadical ? pkgs.cadical
, symfpu ? pkgs.symfpu
, kissat ? pkgs.kissat
, cryptominisat ? pkgs.cryptominisat
, pkg-config ? pkgs.pkg-config
, writeTextDir ? pkgs.writeTextDir
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part was cargo-culted from NixOS/nixpkgs#246779. There's a lot of duplication here, so perhaps I ought to simply remove these as arguments to the derivation?

flake.nix Outdated
@@ -12,7 +12,7 @@
# $ nix run github:GaloisInc/flakes#z3.v4_8_14 -- -version

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/22.05";
nixpkgs.url = "github:nixos/nixpkgs/23.05";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed to make this change to gain access to meson >= 0.64, which bitwuzla requires.

flake.nix Outdated
Comment on lines 25 to 28
bitwuzla_unstable_2021_07_01 = {
url = "github:bitwuzla/bitwuzla/58d720598e359b1fdfec4a469c76f1d1f24db51a";
flake = false;
};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this as an input, since I don't think we want to keep the unstable version around any more. That being said, I'm unclear if we should replace it with a bitwuzla-0.3.0–specific input of some kind.

@kquick
Copy link
Member

kquick commented Jan 10, 2024

Made various updates including adding newer versions of cvc5 and fixing boolector linkage with CaDiCaL. All solver versions now build successfully.

@kquick
Copy link
Member

kquick commented Jan 10, 2024

Take a look and let me know if you have comments or concerns, @RyanGlScott ... github will not let me add you as a reviewer.

Copy link
Contributor Author

@RyanGlScott RyanGlScott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @kquick!

flake.nix Outdated Show resolved Hide resolved
flake.nix Outdated Show resolved Hide resolved
flake.nix Outdated Show resolved Hide resolved
testall.sh Outdated Show resolved Hide resolved
@RyanGlScott
Copy link
Contributor Author

I approve. (It's my own PR, so GitHub won't let me explicitly mark it for approval, but I approve nonetheless.) Let's land this!

@RyanGlScott RyanGlScott merged commit 26cebc9 into main Jan 10, 2024
@RyanGlScott RyanGlScott deleted the T6-bitwuzla-0.3.0 branch January 10, 2024 16:59
RyanGlScott added a commit to GaloisInc/what4 that referenced this pull request Jan 10, 2024
This was removed from the `flakes` repo in GaloisInc/flakes#7. The rationale is
that odd Yices version numbers are development versions, and we only want to
test release versions. `what4`'s CI was testing 2.6.1 (a development version),
so let's just remove it.
RyanGlScott added a commit to GaloisInc/what4 that referenced this pull request Jan 12, 2024
This was removed from the `flakes` repo in GaloisInc/flakes#7. The rationale is
that odd Yices version numbers are development versions, and we only want to
test release versions. `what4`'s CI was testing 2.6.1 (a development version),
so let's just remove it.
@RyanGlScott
Copy link
Contributor Author

nixpkgs now includes in bitwuzla-0.4.0, so we could remove flakes' vendored-in copy of bitwuzla by upgrading to 0.4.0. (I am personally in no hurry to do so, but it would be a good thing to do the next time we find ourselves updating things.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade bitwuzla version
2 participants