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