Skip to content

Commit

Permalink
[nix] support nix run
Browse files Browse the repository at this point in the history
Signed-off-by: unlsycn <[email protected]>
  • Loading branch information
unlsycn committed Sep 9, 2024
1 parent 6ea7e8a commit 70f0b3d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/chisel/nix/gcd/gcd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ let

outputs = [ "out" "elaborator" ];

meta.mainProgram = "elaborator";

buildPhase = ''
mill -i '__.assembly'
'';
Expand Down
2 changes: 2 additions & 0 deletions templates/chisel/nix/gcd/vcs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ in stdenv.mkDerivation {

src = rtl;

meta.mainProgram = binName;

buildPhase = ''
runHook preBuild
Expand Down
2 changes: 2 additions & 0 deletions templates/chisel/nix/gcd/verilated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ in stdenv.mkDerivation {
inherit (rtl) target;
};

meta.mainProgram = vName;

buildPhase = ''
runHook preBuild
Expand Down

0 comments on commit 70f0b3d

Please sign in to comment.