Skip to content

Commit

Permalink
[nix] move default.nix for verilator only
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer committed Jul 28, 2024
1 parent 9138eae commit ed846cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion difftest/default.nix → difftest/verilator.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

let
self = rustPlatform.buildRustPackage {
name = "difftest";
name = "verilator-emu" + (lib.optionalString verilated.enable-trace "-trace");

src = with lib.fileset; toSource {
root = ./.;
fileset = unions [
Expand Down
4 changes: 2 additions & 2 deletions nix/t1/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ lib.makeScope newScope
emu = innerSelf.callPackage ./ipemu.nix { rtl = ip.emu-rtl; stdenv = moldStdenv; };
emu-trace = innerSelf.callPackage ./ipemu.nix { rtl = emu-rtl; stdenv = moldStdenv; do-trace = true; };

difftest = innerSelf.callPackage ../../difftest/default.nix { inherit verilated; };
difftest-trace = innerSelf.callPackage ../../difftest/default.nix { verilated = verilated-trace; };
difftest = innerSelf.callPackage ../../difftest/verilator.nix { inherit verilated; };
difftest-trace = innerSelf.callPackage ../../difftest/verilator.nix { verilated = verilated-trace; };
};

subsystem = rec {
Expand Down

0 comments on commit ed846cf

Please sign in to comment.