surelog: 1.45 -> 1.57
Also, no vendored dependencies anymore, so we can fetch git without submodules and use the libraries provided from nix (flatbuffers, uhdm, gtest, antlr).
This commit is contained in:
parent
d2831ca5da
commit
e3032b1d78
1 changed files with 16 additions and 21 deletions
|
@ -7,33 +7,24 @@
|
||||||
, libuuid
|
, libuuid
|
||||||
, openjdk
|
, openjdk
|
||||||
, gperftools
|
, gperftools
|
||||||
|
, gtest
|
||||||
|
, uhdm
|
||||||
|
, antlr4
|
||||||
, flatbuffers
|
, flatbuffers
|
||||||
, fetchpatch
|
, capnproto
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "surelog";
|
pname = "surelog";
|
||||||
version = "1.45";
|
version = "1.57";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "chipsalliance";
|
owner = "chipsalliance";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-/SSKcEIhmWDOKN4v3djWTwZ5/nQvR8ibflzSVFDt/rM=";
|
hash = "sha256-Gty0OSNG5Nonyw7v2KiKP51LhiugMY7uqI6aJ6as0SQ=";
|
||||||
fetchSubmodules = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# This prevents race conditions in unit tests that surface since we run
|
|
||||||
# ctest in parallel.
|
|
||||||
# This patch can be removed with the next version of surelog
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/chipsalliance/Surelog/commit/9a54efbd156becf65311a4272104810f36041fa6.patch";
|
|
||||||
sha256 = "sha256-rU1Z/0wlVTgnPLqTN/87n+gI1iJ+6k/+sunVVd0ulhQ=";
|
|
||||||
name = "parallel-test-running.patch";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
pkg-config
|
pkg-config
|
||||||
|
@ -42,16 +33,25 @@ stdenv.mkDerivation rec {
|
||||||
psutil
|
psutil
|
||||||
orderedmultidict
|
orderedmultidict
|
||||||
]))
|
]))
|
||||||
|
gtest
|
||||||
|
antlr4
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libuuid
|
libuuid
|
||||||
gperftools
|
gperftools
|
||||||
flatbuffers
|
flatbuffers
|
||||||
|
uhdm
|
||||||
|
capnproto
|
||||||
|
antlr4.runtime.cpp
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DSURELOG_USE_HOST_FLATBUFFERS=On"
|
"-DSURELOG_USE_HOST_FLATBUFFERS=On"
|
||||||
|
"-DSURELOG_USE_HOST_UHDM=On"
|
||||||
|
"-DSURELOG_USE_HOST_GTEST=On"
|
||||||
|
"-DSURELOG_USE_HOST_ANTLR=On"
|
||||||
|
"-DANTLR_JAR_LOCATION=${antlr4.jarLocation}"
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
@ -62,16 +62,11 @@ stdenv.mkDerivation rec {
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
mv $out/lib/surelog/* $out/lib/
|
|
||||||
mv $out/lib/pkg $out/lib/surelog/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "SystemVerilog 2017 Pre-processor, Parser, Elaborator, UHDM Compiler";
|
description = "SystemVerilog 2017 Pre-processor, Parser, Elaborator, UHDM Compiler";
|
||||||
homepage = "https://github.com/chipsalliance/Surelog";
|
homepage = "https://github.com/chipsalliance/Surelog";
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = with lib.maintainers; [ matthuszagh ];
|
maintainers = with lib.maintainers; [ matthuszagh ];
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue