diff options
author | Austin Seipp <aseipp@pobox.com> | 2022-11-01 18:32:32 -0500 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2022-11-02 07:55:30 -0500 |
commit | 3afaf7d263025fc8c24247ec368f593af951b72f (patch) | |
tree | fbc4ff7cbd3e9dece2d021b921c1f2c631c74982 | |
parent | 5ceadb26b84ff94ba4e9a150e48bf633abaa7905 (diff) | |
download | nixpkgs-3afaf7d263025fc8c24247ec368f593af951b72f.tar nixpkgs-3afaf7d263025fc8c24247ec368f593af951b72f.tar.gz nixpkgs-3afaf7d263025fc8c24247ec368f593af951b72f.tar.bz2 nixpkgs-3afaf7d263025fc8c24247ec368f593af951b72f.tar.lz nixpkgs-3afaf7d263025fc8c24247ec368f593af951b72f.tar.xz nixpkgs-3afaf7d263025fc8c24247ec368f593af951b72f.tar.zst nixpkgs-3afaf7d263025fc8c24247ec368f593af951b72f.zip |
verilator: enable doCheck = true
Based on the work from yangm2 in #109493. Co-authored-by: yangm2 <yangm2@users.noreply.github.com> Signed-off-by: Austin Seipp <aseipp@pobox.com>
-rw-r--r-- | pkgs/applications/science/electronics/verilator/default.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/applications/science/electronics/verilator/default.nix b/pkgs/applications/science/electronics/verilator/default.nix index bcee2420c15..0a190a1c902 100644 --- a/pkgs/applications/science/electronics/verilator/default.nix +++ b/pkgs/applications/science/electronics/verilator/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, fetchFromGitHub , perl, flex, bison, python3, autoconf +, which, cmake }: stdenv.mkDerivation rec { @@ -16,20 +17,21 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; buildInputs = [ perl ]; nativeBuildInputs = [ flex bison python3 autoconf ]; + checkInputs = [ which ]; - # these tests need some interpreter paths patched early on... - # see https://github.com/NixOS/nix/issues/1205 - doCheck = false; + doCheck = stdenv.isLinux; # darwin tests are broken for now... checkTarget = "test"; - preConfigure = '' - autoconf - ''; + preConfigure = "autoconf"; - postPatch = '' + preCheck = '' patchShebangs \ src/flexfix \ - src/vlcovgen + src/vlcovgen \ + bin/verilator \ + bin/verilator_coverage \ + test_regress/driver.pl \ + test_regress/t/*.pl ''; meta = with lib; { |