build(nix): package factur-x 6.8 and add beads to the dev shell

The flake still built factur-x 3.8 while uv.lock and CI use 6.8; the
versions differ in behavior (e.g. XRechnung profile detection). The
flake now builds 6.8 with its new build and runtime dependencies.

The dev shell also provides bd (beads). The pinned nixpkgs only ships
bd 0.42, which cannot read the .beads database, so bd comes from a
separate, newer nixpkgs input.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
2026-11-11 18:33:40 +01:00
co-authored by Claude Fable 5.2
parent 34490db0ad
commit 630dd696da
2 changed files with 31 additions and 4 deletions
Generated
+18 -1
View File
@@ -70,6 +70,22 @@
"type": "github"
}
},
"nixpkgs-beads": {
"locked": {
"lastModified": 1794042290,
"narHash": "sha256-ziZn2PvCJE5JEEpqTdxXwJpPB+L3YqoCpTAMCzyaP3U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f4a03c008967841f2a0b3cb7c436fc6fc31671f6",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-master": {
"locked": {
"lastModified": 1770917518,
@@ -129,7 +145,8 @@
"agents": "agents",
"flake-utils": "flake-utils",
"m3ta-nixpkgs": "m3ta-nixpkgs",
"nixpkgs": "nixpkgs_2"
"nixpkgs": "nixpkgs_2",
"nixpkgs-beads": "nixpkgs-beads"
}
},
"systems": {
+13 -3
View File
@@ -5,6 +5,11 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
# Newer nixpkgs only for the beads issue tracker (bd >= 1.0): the pinned
# nixpkgs ships bd 0.42, which cannot read the .beads database.
# Drop this input once nixpkgs itself is updated.
nixpkgs-beads.url = "github:NixOS/nixpkgs/nixos-unstable";
m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs";
agents = {
url = "git+https://code.m3ta.dev/m3tam3re/AGENTS";
@@ -15,6 +20,7 @@
outputs = {
self,
nixpkgs,
nixpkgs-beads,
flake-utils,
m3ta-nixpkgs,
agents,
@@ -29,20 +35,22 @@
# factur-x package - not available in nixpkgs, so we package it inline
factur-x = pythonPackages.buildPythonPackage rec {
pname = "factur_x";
version = "3.8";
# Keep in sync with uv.lock (CI and Docker install from the lockfile)
version = "6.8";
format = "pyproject";
src = pythonPackages.fetchPypi {
inherit pname version;
hash = "sha256-/pNY5w09pxcGAFFh3USTkLlkGr+JOTUqhglYzNMByks=";
hash = "sha256-0AcenHIXZm6tAl9EJ2Xh4u9KC6jiZ3urZAQn6wi7s0k=";
};
nativeBuildInputs = with pythonPackages; [
hatchling
hatch-requirements-txt
hatch-vcs
];
dependencies = with pythonPackages; [pypdf lxml];
dependencies = with pythonPackages; [pypdf lxml python-stdnum requests];
pythonRelaxDeps = true;
@@ -112,6 +120,8 @@
# factur-x - install via pip if not available
]))
pkgs.python311Packages.pip
# Issue tracker (bd); issues live in .beads/
nixpkgs-beads.legacyPackages.${system}.beads
];
inherit (rules) instructions;