diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..4a4726a --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use_nix diff --git a/.gitignore b/.gitignore index 9eb978b..22a40f3 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ project/plugins/project/ .lib/ .ensime .idea +.direnv # ---> Scala *.class diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..fffdbc5 --- /dev/null +++ b/shell.nix @@ -0,0 +1,24 @@ +let + # Pin some fairly new nixpkgs + pkgs = import (builtins.fetchTarball { + name = "nixpkgs-unstable-2021-07-06"; + url = "https://github.com/nixos/nixpkgs/archive/291b3ff5af268eb7a656bb11c73f2fe535ea2170.tar.gz"; + sha256 = "1z2l7q4cmiaqb99cd8yfisdr1n6xbwcczr9020ss47y2z1cn1x7x"; + }) {}; +in + pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + # JVM stuff + scala_2_13 + + # Build tools + gnumake + sbt + + # Hardware + yosys + verilator + icestorm + nextpnr + ]; + }