diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-06-11 20:12:29 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-06-11 20:12:29 -0600 |
| commit | 07bf05a7869c88c27912833c1db942f8fc849f4d (patch) | |
| tree | b32a11e146884bcee04ef2dd5702b45e89699424 /pkgs/cocotb | |
| parent | 905a306a705fc7bf9f0d03945bfe692c530dd05e (diff) | |
pkgs: add existing derivations written for other projects
Diffstat (limited to '')
| -rw-r--r-- | pkgs/cocotb/default.nix | 15 | ||||
| -rw-r--r-- | pkgs/cocotb/exts/wishbone.nix | 18 |
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/cocotb/default.nix b/pkgs/cocotb/default.nix new file mode 100644 index 0000000..1fe3d98 --- /dev/null +++ b/pkgs/cocotb/default.nix @@ -0,0 +1,15 @@ +{ cocotb, fetchFromGitHub, find-libpython }: +cocotb.overridePythonAttrs (prev: { + version = "master-2023-03-16"; + + src = fetchFromGitHub { + repo = "cocotb"; + owner = "cocotb"; + + rev = "7b33df04866ce1e74ff4ebc33ced8e30f59970de"; + sha256 = "sha256-7IlEaGSnd47tTxRu8QGW9mExCCZe47S41tlQatACLxU="; + }; + + propagatedBuildInputs = [ find-libpython ]; + doCheck = false; +}) diff --git a/pkgs/cocotb/exts/wishbone.nix b/pkgs/cocotb/exts/wishbone.nix new file mode 100644 index 0000000..5dd375b --- /dev/null +++ b/pkgs/cocotb/exts/wishbone.nix @@ -0,0 +1,18 @@ +{ buildPythonPackage, cocotb, cocotb-bus, fetchFromGitHub, git, setuptools-scm }: +buildPythonPackage { + pname = "cocotbext-wishbone"; + version = "master-2022-04-26"; + + src = fetchFromGitHub { + repo = "cocotbext-wishbone"; + owner = "wallento"; + + rev = "3c667834f41c3c40dd4647b5a7b9e4e71e1302c4"; + sha256 = "sha256-vden1hZ9V1aqxFWu/vKmOfWfzINAopJRKTPKOpOiNkU="; + + leaveDotGit = true; + }; + + nativeBuildInputs = [ git setuptools-scm ]; + propagatedBuildInputs = [ cocotb cocotb-bus setuptools-scm ]; +} |
