Skip to content

Commit

Permalink
[nix] use mill-flows overlay in chisel-nix
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <dev@avimit.in>
  • Loading branch information
Avimitin committed Feb 7, 2025
1 parent b8c675a commit c646004
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 82 deletions.
16 changes: 16 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-for-circt.url = "github:NixOS/nixpkgs/nixos-unstable-small";
chisel-nix.url = "github:chipsalliance/chisel-nix";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils, nixpkgs-for-circt }@inputs:
outputs = { self, nixpkgs, chisel-nix, flake-utils, nixpkgs-for-circt }@inputs:
let
overlay = import ./nix/overlay.nix { inherit self; };
in
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs { inherit system; overlays = [ overlay ]; };
pkgs = import nixpkgs { inherit system; overlays = [ chisel-nix.overlays.mill-flows overlay ]; };
in
{
legacyPackages = pkgs;
Expand Down
1 change: 0 additions & 1 deletion nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ rec {
# DynamoCompiler doesn't support python 3.12+ yet
buddy-mlir = final.callPackage ./pkgs/buddy-mlir.nix { python3 = final.python311; };

fetchMillDeps = final.callPackage ./pkgs/mill-builder.nix { };
circt-full = final.callPackage ./pkgs/circt-full.nix { };
riscv-vector-test = final.callPackage ./pkgs/riscv-vector-test.nix { };
add-determinism = final.callPackage ./pkgs/add-determinism { }; # faster strip-undetereminism
Expand Down
79 changes: 0 additions & 79 deletions nix/pkgs/mill-builder.nix

This file was deleted.

0 comments on commit c646004

Please sign in to comment.