-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
36 lines (34 loc) · 1001 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2024 Jiuyang Liu <[email protected]>
{
description = "Chisel Nix";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs@{ self, nixpkgs, flake-utils }:
let overlay = import ./nix/overlay.nix;
in {
# System-independent attr
inherit inputs;
overlays.default = overlay;
} // flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
overlays = [ overlay ];
inherit system;
};
in
{
formatter = pkgs.nixpkgs-fmt;
legacyPackages = pkgs;
devShells.default = pkgs.mkShell ({
inputsFrom = [ pkgs.zaozi.zaozi-assembly ];
nativeBuildInputs = [ ];
env = {
CIRCT_INSTALL_PATH = pkgs.circt-full;
JEXTRACT_INSTALL_PATH = pkgs.jextract-21;
};
});
});
}