summaryrefslogtreecommitdiff
path: root/nix/package.nix
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-06-20 00:41:39 +0200
committercashmere <cashmere@autistici.org>2026-06-20 00:41:39 +0200
commitddc8b2c0aa3e5e222157ed411cb93ed5faf16ad1 (patch)
tree17b662be6df655cde263ec26fcbd813777301e5d /nix/package.nix
parent7aa8b149e20c75a97720b8e896be8bda99fb9ec1 (diff)
downloadtechnical-renaissance-ddc8b2c0aa3e5e222157ed411cb93ed5faf16ad1.tar.gz
nix: add package.nix and module.nix
Diffstat (limited to 'nix/package.nix')
-rw-r--r--nix/package.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/nix/package.nix b/nix/package.nix
new file mode 100644
index 0000000..22d7d5e
--- /dev/null
+++ b/nix/package.nix
@@ -0,0 +1,49 @@
+{
+ python3Packages,
+ sources ? import ../npins,
+}:
+
+let
+ rustimport = python3Packages.buildPythonPackage {
+ pname = "rustimport";
+ version = "1.3.4";
+ pyproject = true;
+ src = sources.rustimport;
+ build-system = [ python3Packages.setuptools ];
+ dependencies = [ python3Packages.toml ];
+ doCheck = false;
+ };
+
+ robyn = python3Packages.buildPythonPackage {
+ pname = "robyn";
+ version = "0.86.0";
+ format = "wheel";
+ src = sources.robyn;
+ dependencies = with python3Packages; [
+ inquirerpy
+ multiprocess
+ orjson
+ rustimport
+ uvloop
+ watchdog
+ jinja2
+ ];
+ doCheck = false;
+ };
+in
+python3Packages.buildPythonApplication {
+ pname = "technical-renaissance";
+ version = "0.1.0";
+ pyproject = true;
+ src = ../.;
+
+ build-system = [ python3Packages.uv-build ];
+ dependencies = [ robyn ];
+
+ doCheck = false;
+
+ meta = {
+ description = "Webring for the #technicalrenaissance IRC channel";
+ mainProgram = "technical-renaissance";
+ };
+}