systemc: build with cmake, expand platforms to unix
This commit is contained in:
parent
54dce4f0ac
commit
d44aa50819
1 changed files with 10 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "systemc";
|
pname = "systemc";
|
||||||
|
@ -11,16 +11,21 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0sj8wlkp68cjhmkd9c9lvm3lk3sckczpz7w9vby64inc1f9fnf0b";
|
sha256 = "0sj8wlkp68cjhmkd9c9lvm3lk3sckczpz7w9vby64inc1f9fnf0b";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
nativeBuildInputs = [ cmake ];
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
|
||||||
|
|
||||||
configureFlags = [ "--with-unix-layout" ];
|
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;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The language for System-level design, modeling and verification";
|
description = "The language for System-level design, modeling and verification";
|
||||||
homepage = "https://systemc.org/";
|
homepage = "https://systemc.org/";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ victormignot amiloradovsky ];
|
maintainers = with maintainers; [ victormignot amiloradovsky ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue