From 871b433d730c56aaa7406961467f4d56f404f3fb Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sat, 27 Apr 2024 11:13:14 -0600 Subject: nix: peakrdl: initial commit --- nix/systemrdl-compiler.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 nix/systemrdl-compiler.nix (limited to 'nix/systemrdl-compiler.nix') diff --git a/nix/systemrdl-compiler.nix b/nix/systemrdl-compiler.nix new file mode 100644 index 0000000..00c92d7 --- /dev/null +++ b/nix/systemrdl-compiler.nix @@ -0,0 +1,32 @@ +{ antlr4-python3-runtime +, buildPythonPackage +, colorama +, fetchPypi +, lib +, markdown +}: +let + pname = "systemrdl-compiler"; + version = "1.27.3"; +in +buildPythonPackage { + inherit pname version; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-22g1S/8ZTMcjbtaLrGTFu4GpoXtbp7bzezAHilClOj4="; + }; + + propagatedBuildInputs = [ + antlr4-python3-runtime + colorama + markdown + ]; + + meta = { + description = "Parse and elaborate front-end for SystemRDL 2.0"; + changelog = "https://github.com/SystemRDL/${pname}/releases/tag/v${version}"; + homepage = "https://github.com/SystemRDL/${pname}"; + license = lib.licenses.mit; + }; +} -- cgit v1.2.3