tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
systemc: build with cmake, expand platforms to unix
Nick Cao
2 years ago
d44aa508
54dce4f0
+10
-5
1 changed file
expand all
collapse all
unified
split
pkgs
applications
science
electronics
systemc
default.nix
+10
-5
pkgs/applications/science/electronics/systemc/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
1
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
14
-
enableParallelBuilding = true;
15
15
-
nativeBuildInputs = [ autoreconfHook ];
14
14
+
nativeBuildInputs = [ cmake ];
15
15
+
16
16
+
cmakeFlags = [
17
17
+
# Undefined reference to the sc_core::sc_api_version_2_3_4_XXX
18
18
+
# https://github.com/accellera-official/systemc/issues/21
19
19
+
"-DCMAKE_CXX_STANDARD=17"
20
20
+
];
16
21
17
17
-
configureFlags = [ "--with-unix-layout" ];
22
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
23
-
platforms = platforms.linux;
28
28
+
platforms = platforms.unix;
24
29
maintainers = with maintainers; [ victormignot amiloradovsky ];
25
30
};
26
31
}