diff --git a/flake.lock b/flake.lock index 704b309..33437b7 100644 --- a/flake.lock +++ b/flake.lock @@ -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": { diff --git a/flake.nix b/flake.nix index 664f92f..6728171 100644 --- a/flake.nix +++ b/flake.nix @@ -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;