summaryrefslogtreecommitdiff
path: root/nix/systemrdl-compiler.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-04-27 11:13:14 -0600
committerAlejandro Soto <alejandro@34project.org>2024-04-27 11:13:14 -0600
commit871b433d730c56aaa7406961467f4d56f404f3fb (patch)
treebaa9fd3900e2dcdb1de05185ce2c1e3ea7ee053b /nix/systemrdl-compiler.nix
parentdc0262c63df60987ec64ce8e8df09359310d7a3d (diff)
nix: peakrdl: initial commit
Diffstat (limited to 'nix/systemrdl-compiler.nix')
-rw-r--r--nix/systemrdl-compiler.nix32
1 files changed, 32 insertions, 0 deletions
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;
+ };
+}