-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
opensmt: 20101017 -> 2.0.1 #102421
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
opensmt: 20101017 -> 2.0.1 #102421
Conversation
Ok so I will look to update the package instead |
Working on it, they migrated to cmake build (cool) but it tries to download an external project (googletest) :'( Any idea how to properly handle this ? |
c60e6e7
to
4d00a92
Compare
Maybe predownload and feed it inside the build directory? |
I don't know where the folder is supposed to appear and to hook into cmake's FetchContent system |
@freezeboy friendly ping |
I could not find where the folder is supposed to appear for cmake, any inputs are welcome |
Bit of a hack but this seems to work for me. diff --git a/pkgs/applications/science/logic/opensmt/default.nix b/pkgs/applications/science/logic/opensmt/default.nix
index 249d0722699..3641229f7c1 100644
--- a/pkgs/applications/science/logic/opensmt/default.nix
+++ b/pkgs/applications/science/logic/opensmt/default.nix
@@ -1,6 +1,7 @@
{ stdenv, lib, fetchFromGitHub
, cmake, libedit, gmpxx, bison, flex
, enableReadline ? false, readline
+, gtest
}:
stdenv.mkDerivation rec {
@@ -17,6 +18,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake bison flex ];
buildInputs = [ libedit gmpxx ] ++ lib.optional enableReadline readline;
+ preConfigure = ''
+ substituteInPlace test/CMakeLists.txt \
+ --replace 'FetchContent_Populate' '#FetchContent_Populate'
+ '';
+ cmakeFlags = [
+ "-Dgoogletest_SOURCE_DIR=${gtest.src}"
+ "-Dgoogletest_BINARY_DIR=./gtest-build"
+ ];
+
meta = with lib; {
description = "A satisfiability modulo theory (SMT) solver";
maintainers = [ maintainers.raskin ]; Edit: to be clear, I'm not using this package, so if you aren't either, I'm fine to let this get dropped |
4d00a92
to
9fd99b5
Compare
In integrated your patch, thank you for it. I don't know precisely if other people use it in nixpkgs, I have no strong feeling about it. |
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.
Cool, since you've done all the work I'd say this is good to merge.
Result of nixpkgs-review pr 102421
run on x86_64-linux 1
1 package built:
- opensmt
Motivation for this change
Broken since 2014, googlecode site says it migrated to github but nothing is visible there
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)