summaryrefslogtreecommitdiff
path: root/nix/peakrdl.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/peakrdl.nix
parentdc0262c63df60987ec64ce8e8df09359310d7a3d (diff)
nix: peakrdl: initial commit
Diffstat (limited to 'nix/peakrdl.nix')
-rw-r--r--nix/peakrdl.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nix/peakrdl.nix b/nix/peakrdl.nix
new file mode 100644
index 0000000..48cf1fa
--- /dev/null
+++ b/nix/peakrdl.nix
@@ -0,0 +1,31 @@
+{ buildPythonPackage
+, fetchPypi
+, lib
+, setuptools
+, setuptools-scm
+}:
+let
+ pname = "peakrdl";
+ version = "1.1.0";
+in
+buildPythonPackage {
+ inherit pname version;
+ format = "pyproject";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "sha256-ZiqdXOaovFnOymvUQvT76OSwHlP+FLm/fuj5H/bY10w=";
+ };
+
+ propagatedNativeBuildInputs = [
+ setuptools
+ setuptools-scm
+ ];
+
+ meta = {
+ description = "PeakRDL is a free and open-source control & status register (CSR) toolchain";
+ changelog = "https://github.com/SystemRDL/${pname}/releases/tag/v${version}";
+ homepage = "https://github.com/SystemRDL/${pname}";
+ license = lib.licenses.gpl3;
+ };
+}