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:
Generated
+18
-1
@@ -70,6 +70,22 @@
|
|||||||
"type": "github"
|
"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": {
|
"nixpkgs-master": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770917518,
|
"lastModified": 1770917518,
|
||||||
@@ -129,7 +145,8 @@
|
|||||||
"agents": "agents",
|
"agents": "agents",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"m3ta-nixpkgs": "m3ta-nixpkgs",
|
"m3ta-nixpkgs": "m3ta-nixpkgs",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"nixpkgs-beads": "nixpkgs-beads"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
|
|||||||
@@ -5,6 +5,11 @@
|
|||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
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";
|
m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs";
|
||||||
agents = {
|
agents = {
|
||||||
url = "git+https://code.m3ta.dev/m3tam3re/AGENTS";
|
url = "git+https://code.m3ta.dev/m3tam3re/AGENTS";
|
||||||
@@ -15,6 +20,7 @@
|
|||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
|
nixpkgs-beads,
|
||||||
flake-utils,
|
flake-utils,
|
||||||
m3ta-nixpkgs,
|
m3ta-nixpkgs,
|
||||||
agents,
|
agents,
|
||||||
@@ -29,20 +35,22 @@
|
|||||||
# factur-x package - not available in nixpkgs, so we package it inline
|
# factur-x package - not available in nixpkgs, so we package it inline
|
||||||
factur-x = pythonPackages.buildPythonPackage rec {
|
factur-x = pythonPackages.buildPythonPackage rec {
|
||||||
pname = "factur_x";
|
pname = "factur_x";
|
||||||
version = "3.8";
|
# Keep in sync with uv.lock (CI and Docker install from the lockfile)
|
||||||
|
version = "6.8";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = pythonPackages.fetchPypi {
|
src = pythonPackages.fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-/pNY5w09pxcGAFFh3USTkLlkGr+JOTUqhglYzNMByks=";
|
hash = "sha256-0AcenHIXZm6tAl9EJ2Xh4u9KC6jiZ3urZAQn6wi7s0k=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with pythonPackages; [
|
nativeBuildInputs = with pythonPackages; [
|
||||||
hatchling
|
hatchling
|
||||||
hatch-requirements-txt
|
hatch-requirements-txt
|
||||||
|
hatch-vcs
|
||||||
];
|
];
|
||||||
|
|
||||||
dependencies = with pythonPackages; [pypdf lxml];
|
dependencies = with pythonPackages; [pypdf lxml python-stdnum requests];
|
||||||
|
|
||||||
pythonRelaxDeps = true;
|
pythonRelaxDeps = true;
|
||||||
|
|
||||||
@@ -112,6 +120,8 @@
|
|||||||
# factur-x - install via pip if not available
|
# factur-x - install via pip if not available
|
||||||
]))
|
]))
|
||||||
pkgs.python311Packages.pip
|
pkgs.python311Packages.pip
|
||||||
|
# Issue tracker (bd); issues live in .beads/
|
||||||
|
nixpkgs-beads.legacyPackages.${system}.beads
|
||||||
];
|
];
|
||||||
|
|
||||||
inherit (rules) instructions;
|
inherit (rules) instructions;
|
||||||
|
|||||||
Reference in New Issue
Block a user