571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub
|
|
, cmake, libedit, gmpxx, bison, flex
|
|
, enableReadline ? false, readline
|
|
, gtest
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opensmt";
|
|
version = "2.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "usi-verification-and-security";
|
|
repo = "opensmt";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-zhNNnwc41B4sNq50kPub29EYhqV+FoDKRD/CLHnVyZw=";
|
|
};
|
|
|
|
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; {
|
|
broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
|
|
description = "Satisfiability modulo theory (SMT) solver";
|
|
mainProgram = "opensmt";
|
|
maintainers = [ maintainers.raskin ];
|
|
platforms = platforms.linux;
|
|
license = if enableReadline then licenses.gpl2Plus else licenses.mit;
|
|
homepage = "https://github.com/usi-verification-and-security/opensmt";
|
|
};
|
|
}
|