build(nix): add declarative flake.nix devShell with python313, uv, ruff, pyright, sqlite, and tea

Refs: #3
This commit is contained in:
kiskaadee committed 2026-10-19 00:12:40 -05:00
1 parent 6baa75bd9f
commit 3be395a594
4 files changed
+95 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
use flake
+2 -1
View File
@@ -19,7 +19,8 @@ htmlcov/
*.sqlite
*.sqlite3
# IDE / Editor
# IDE / Editor / Nix direnv
.vscode/
.idea/
*.swp
.direnv/
Generated
+61
View File
@@ -0,0 +1,61 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1791914995,
"narHash": "sha256-Zf/xfQEAasnwnmEfHqW/4hjDE/s44yn2hD4RuVIZRjA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b7a79d3fea1e214f6d668d521cecec0c01e26544",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1792094642,
"narHash": "sha256-zp8ToDMnqZcu4o4IH9pdwXFXGp7yLm/M0dEnNWnyd7I=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "fe13242281a67641c0102cdb1087f0ebe586c7df",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
+31
View File
@@ -0,0 +1,31 @@
{
description = "Armonía del Ser: Core API (armonia-api) — Python 3.13 + uv devShell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
name = "armonia-api-dev-shell";
packages = with pkgs; [
python313
uv
ruff
pyright
sqlite
tea
];
env = {
UV_PYTHON_PREFERENCE = "only-system";
UV_PYTHON = "${pkgs.python313}/bin/python3";
};
};
});
}