Merge pull request #244644 from amiloradovsky/master

verilator & systemc: update & integration

authored by Nick Cao and committed by GitHub c4a065f6 7482a0e6

+28 -18
+14 -6
pkgs/applications/science/electronics/systemc/default.nix
··· 1 - { lib, stdenv, fetchurl }: 1 + { lib, stdenv, fetchFromGitHub, autoreconfHook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "systemc"; 5 - version = "2.3.3"; 5 + version = "2.3.4"; 6 6 7 - src = fetchurl { 8 - url = "https://www.accellera.org/images/downloads/standards/systemc/${pname}-${version}.tar.gz"; 9 - sha256 = "5781b9a351e5afedabc37d145e5f7edec08f3fd5de00ffeb8fa1f3086b1f7b3f"; 7 + src = fetchFromGitHub { 8 + owner = "accellera-official"; 9 + repo = pname; 10 + rev = version; 11 + sha256 = "0sj8wlkp68cjhmkd9c9lvm3lk3sckczpz7w9vby64inc1f9fnf0b"; 10 12 }; 11 13 14 + enableParallelBuilding = true; 15 + nativeBuildInputs = [ autoreconfHook ]; 16 + 17 + configureFlags = [ "--with-unix-layout" ]; 18 + 12 19 meta = with lib; { 13 20 description = "The language for System-level design, modeling and verification"; 14 21 homepage = "https://systemc.org/"; 15 22 license = licenses.asl20; 16 - maintainers = with maintainers; [ victormignot ]; 23 + platforms = platforms.linux; 24 + maintainers = with maintainers; [ victormignot amiloradovsky ]; 17 25 }; 18 26 }
+14 -12
pkgs/applications/science/electronics/verilator/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub 2 - , perl, flex, bison, python3, autoconf 3 - , which, cmake, help2man 4 - , makeWrapper, glibcLocales 5 - }: 1 + { lib, stdenv, fetchFromGitHub, perl, flex, bison, python3, autoconf, 2 + which, cmake, ccache, help2man, makeWrapper, glibcLocales, 3 + systemc, git, numactl }: 6 4 7 5 stdenv.mkDerivation rec { 8 6 pname = "verilator"; ··· 16 14 }; 17 15 18 16 enableParallelBuilding = true; 19 - buildInputs = [ perl ]; 20 - nativeBuildInputs = [ makeWrapper flex bison python3 autoconf help2man ]; 21 - nativeCheckInputs = [ which ]; 17 + buildInputs = [ perl python3 systemc ]; # ccache 18 + nativeBuildInputs = [ makeWrapper flex bison autoconf help2man git ]; 19 + nativeCheckInputs = [ which numactl ]; # cmake 22 20 23 21 doCheck = stdenv.isLinux; # darwin tests are broken for now... 24 22 checkTarget = "test"; ··· 26 24 preConfigure = "autoconf"; 27 25 28 26 postPatch = '' 29 - patchShebangs bin/* src/{flexfix,vlcovgen} test_regress/{driver.pl,t/*.pl} 27 + patchShebangs bin/* src/* nodist/* docs/bin/* examples/xml_py/* \ 28 + test_regress/{driver.pl,t/*.{pl,pf}} \ 29 + ci/* ci/docker/run/* ci/docker/run/hooks/* ci/docker/buildenv/build.sh 30 30 ''; 31 + # grep '^#!/' -R . | grep -v /nix/store | less 32 + # (in nix-shell after patchPhase) 31 33 32 34 postInstall = lib.optionalString stdenv.isLinux '' 33 35 for x in $(ls $out/bin/verilator*); do ··· 36 38 ''; 37 39 38 40 meta = with lib; { 39 - description = "Fast and robust (System)Verilog simulator/compiler"; 40 - homepage = "https://www.veripool.org/wiki/verilator"; 41 + description = "Fast and robust (System)Verilog simulator/compiler and linter"; 42 + homepage = "https://www.veripool.org/verilator"; 41 43 license = with licenses; [ lgpl3Only artistic2 ]; 42 44 platforms = platforms.unix; 43 - maintainers = with maintainers; [ thoughtpolice ]; 45 + maintainers = with maintainers; [ thoughtpolice amiloradovsky ]; 44 46 }; 45 47 }