> git_commit.sh ysyx_22040000 李心杨 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux 00:05:11 up 8:51, 2 users, load average: 0.57, 0.50, 0.41

This commit is contained in:
tracer-ysyx 2024-01-05 00:05:11 +08:00 committed by xinyangli
parent 7e177f8b04
commit 3b7e367af1
5 changed files with 81 additions and 24 deletions

View file

@ -2,17 +2,23 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
nur-xin = {
url = "git+https://git.xinyang.life/xin/nur.git";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, ... }@inputs: with inputs;
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
let
pkgs = nixpkgs.legacyPackages.${system} //
{ nur.xin = nur-xin.legacyPackages.${system}; };
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
gtkwave
gdb
jq
bear
clang-tools
rnix-lsp
@ -20,16 +26,14 @@
];
nativeBuildInputs = with pkgs; [
cmake
verilator
gcc
python3
scala
nur.xin.nvboard
self.packages.${system}.circt
];
buildInputs = with pkgs; [
SDL2
SDL2_image
jre
];