diff --git a/default.nix b/default.nix index a4cd20a..7bcda84 100644 --- a/default.nix +++ b/default.nix @@ -4,6 +4,7 @@ rec { yosys = pkgs.callPackage ./eda/yosys.nix {}; symbiyosys = pkgs.symbiyosys.override { inherit yosys; }; nmigen = pkgs.callPackage ./eda/nmigen.nix { inherit yosys; }; + nmigen-boards = pkgs.callPackage ./eda/nmigen-boards.nix { inherit nmigen; }; scala-spinalhdl = pkgs.callPackage ./eda/scala-spinalhdl.nix {}; jtagtap = pkgs.callPackage ./cores/jtagtap.nix { inherit nmigen; }; diff --git a/eda/nmigen-boards.nix b/eda/nmigen-boards.nix new file mode 100644 index 0000000..4e66059 --- /dev/null +++ b/eda/nmigen-boards.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchFromGitHub, python3Packages, nmigen }: + +python3Packages.buildPythonPackage { + name = "nmigen-boards"; + + src = fetchFromGitHub { + owner = "m-labs"; + repo = "nmigen-boards"; + rev = "bb52dfb9575c4aabf8e7dd9ddd780bf342ee0a71"; + sha256 = "1zmr57nvjz23srgx0yi4lc9rx856rypvi139202qc195almap168"; + }; + + propagatedBuildInputs = [ nmigen ]; + + meta = with stdenv.lib; { + description = "Board and connector definition files for nMigen"; + homepage = "https://m-labs.hk"; + license = licenses.bsd2; + maintainers = [ maintainers.sb0 ]; + }; +}