> configure

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:40:41  up 1 day  9:27,  2 users,  load average: 0.35, 0.36, 0.37
This commit is contained in:
tracer-ysyx 2024-01-06 00:40:41 +08:00 committed by xinyangli
parent 0e11c2e0fb
commit f0ce5198cf
13 changed files with 271 additions and 137 deletions

View file

@ -15,31 +15,32 @@
{ nur.xin = nur-xin.legacyPackages.${system}; };
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
gtkwave
gdb
bear
devShells.default = with pkgs; mkShell {
packages = [
clang-tools
rnix-lsp
sbt
];
nativeBuildInputs = with pkgs; [
cmake
verilator
scala
nur.xin.nvboard
self.packages.${system}.circt
];
buildInputs = with pkgs; [
gdb
jre
];
shellHook = ''
export NEMU_HOME=/home/xin/repo/ysyx-workbench/nemu
'';
inputsFrom = [ self.packages.${system}.default ];
};
packages.default = with pkgs; clangStdenv.mkDerivation {
name = "npc";
version = "0.0.1";
src = ./.;
nativeBuildInputs = [
cmake
sbt
nur.xin.nvboard
self.packages.${system}.circt
];
buildInputs = [
verilator
nur.xin.nvboard
];
NEMU_HOME="/home/xin/repo/ysyx-workbench/nemu";
};
# This version (1.43.0) of circt does not exist in nixpkgs