From d6379a5ec0761759a02c39f5e47f0dec79239972 Mon Sep 17 00:00:00 2001 From: unlsycn Date: Sat, 28 Sep 2024 12:16:25 +0000 Subject: [PATCH] [doc] update readme --- readme.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/readme.md b/readme.md index af62ab8..2719bc1 100644 --- a/readme.md +++ b/readme.md @@ -124,6 +124,29 @@ To format the Scala code, developers can run: nix develop -c bash -c 'mill -i gcd.reformat && mill -i elaborator.reformat' ``` +### Bump dependencies + +To bump nixpkgs, run: + +```bash +nix flake update +``` + +To bump Chisel and other dependencies fetched by nvfetcher, run: + +```bash +cd nix/pkgs/dependencies +nix run '.#nvfetcher' +``` + +To bump mill dependencies, run: + +```bash +nix build '.#gcd.gcd-compiled.millDeps' --rebuild +``` + +and Then update `millDepsHash` in `nix/gcd/gcd.nix` + ### Use the fetchMillDeps function Fetch project dependencies for later offline usage.