2024-04-21 15:54:59 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "systemc";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "3.0.0";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "accellera-official";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-qeQUrPhD+Gb1lResM7NZzO/vEgJd3NE6lbnM380VVa0=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
# Undefined reference to the sc_core::sc_api_version_2_3_4_XXX
|
|
|
|
# https://github.com/accellera-official/systemc/issues/21
|
|
|
|
"-DCMAKE_CXX_STANDARD=17"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
|
2023-08-04 22:07:22 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Language for System-level design, modeling and verification";
|
2022-09-09 14:08:57 +00:00
|
|
|
homepage = "https://systemc.org/";
|
|
|
|
license = licenses.asl20;
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = platforms.unix;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ amiloradovsky ];
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
}
|