systemc: build with cmake, expand platforms to unix

Nick Cao d44aa508 54dce4f0

+10 -5
+10 -5
pkgs/applications/science/electronics/systemc/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, autoreconfHook }: 1 + { lib, stdenv, fetchFromGitHub, cmake }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "systemc"; ··· 11 11 sha256 = "0sj8wlkp68cjhmkd9c9lvm3lk3sckczpz7w9vby64inc1f9fnf0b"; 12 12 }; 13 13 14 - enableParallelBuilding = true; 15 - nativeBuildInputs = [ autoreconfHook ]; 14 + nativeBuildInputs = [ cmake ]; 15 + 16 + cmakeFlags = [ 17 + # Undefined reference to the sc_core::sc_api_version_2_3_4_XXX 18 + # https://github.com/accellera-official/systemc/issues/21 19 + "-DCMAKE_CXX_STANDARD=17" 20 + ]; 16 21 17 - configureFlags = [ "--with-unix-layout" ]; 22 + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; 18 23 19 24 meta = with lib; { 20 25 description = "The language for System-level design, modeling and verification"; 21 26 homepage = "https://systemc.org/"; 22 27 license = licenses.asl20; 23 - platforms = platforms.linux; 28 + platforms = platforms.unix; 24 29 maintainers = with maintainers; [ victormignot amiloradovsky ]; 25 30 }; 26 31 }