Add shell.nix

This commit is contained in:
Donald Sebastian Leung 2020-09-24 15:11:24 +08:00
parent 4046b4769d
commit 79aad630d2
1 changed files with 17 additions and 0 deletions

17
shell.nix Normal file
View File

@ -0,0 +1,17 @@
let
pkgs = import <nixpkgs> {};
nmigen-latest = pkgs.python3Packages.nmigen.overrideAttrs(oa: {
src = pkgs.fetchFromGitHub {
owner = "m-labs";
repo = "nmigen";
rev = "39602ae3fdd143f3aa130278fb185cf3ff98d6da";
sha256 = "1b0rjbb6is6nzbcnxrwh5iv4k9xcac0ijq5kp47wdg9rhbnaa5w0";
};
});
in
pkgs.mkShell {
buildInputs = [
(pkgs.python3.withPackages(ps: [nmigen-latest]))
pkgs.yosys pkgs.symbiyosys
];
}