uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
39
pkgs/applications/science/logic/opensmt/default.nix
Normal file
39
pkgs/applications/science/logic/opensmt/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ stdenv, lib, fetchFromGitHub
|
||||
, cmake, libedit, gmpxx, bison, flex
|
||||
, enableReadline ? false, readline
|
||||
, gtest
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "opensmt";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "usi-verification-and-security";
|
||||
repo = "opensmt";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-3F4Q/ZWlgkiiW7QVjnaaDLSNLVdfAOSmwYdQo1v9Lv4=";
|
||||
};
|
||||
|
||||
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.isLinux && stdenv.isAarch64);
|
||||
description = "A satisfiability modulo theory (SMT) solver";
|
||||
maintainers = [ maintainers.raskin ];
|
||||
platforms = platforms.linux;
|
||||
license = if enableReadline then licenses.gpl2Plus else licenses.mit;
|
||||
homepage = "https://github.com/usi-verification-and-security/opensmt";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue