fix: make the flake evaluate on current nixpkgs
- Drop x86_64-darwin; nixpkgs 26.11 no longer supports it. - Expose only packages available on each system (mem0 is Linux-only) and mark rofi-project-opener Linux-only. - mem0: use posthog without its test suite; nixpkgs marks it broken only because the tests fail with mcp >= 2. - devops shell: build fabric with invoke 3 so azure-cli evaluates; nixpkgs marks it broken over its invoke<3 pin and failing tests. - Update flake inputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
919264cca8
commit
f53130489e
5 files changed
+140
-107
No files matched your search
@@ -30,23 +30,46 @@
|
||||
...
|
||||
} @ inputs: let
|
||||
# Supported systems
|
||||
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
||||
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin"];
|
||||
|
||||
# Helper function to generate an attrset for each of the systems
|
||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||
|
||||
# Only expose packages whose meta.platforms include the system
|
||||
# (e.g. mem0 is Linux-only), so `nix flake check --all-systems` passes.
|
||||
supportedOn = pkgs:
|
||||
nixpkgs.lib.filterAttrs (_: nixpkgs.lib.meta.availableOn pkgs.stdenv.hostPlatform);
|
||||
|
||||
# Helper to create pkgs for a given system
|
||||
pkgsFor = system:
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
overlays = [fabricInvoke3];
|
||||
};
|
||||
|
||||
# nixpkgs marks fabric broken: it pins invoke<3 and its tests fail with
|
||||
# invoke 3, but the library imports and connects fine. Needed by
|
||||
# azure-cli in the devops shell.
|
||||
fabricInvoke3 = _: prev: {
|
||||
pythonPackagesExtensions =
|
||||
prev.pythonPackagesExtensions
|
||||
++ [
|
||||
(_: pyPrev: {
|
||||
fabric = pyPrev.fabric.overridePythonAttrs (old: {
|
||||
doCheck = false;
|
||||
pythonRelaxDeps = ["invoke"];
|
||||
meta = old.meta // {broken = false;};
|
||||
});
|
||||
})
|
||||
];
|
||||
};
|
||||
in {
|
||||
# Custom packages - accessible via 'nix build .#package-name'
|
||||
packages = forAllSystems (system: let
|
||||
pkgs = pkgsFor system;
|
||||
in
|
||||
import ./pkgs {inherit pkgs inputs;});
|
||||
supportedOn pkgs (import ./pkgs {inherit pkgs inputs;}));
|
||||
|
||||
# Overlays - can be imported in your system configuration
|
||||
overlays = import ./overlays {inherit inputs;};
|
||||
@@ -88,7 +111,7 @@
|
||||
# Checks for 'nix flake check' - verifies all packages build
|
||||
checks = forAllSystems (system: let
|
||||
pkgs = pkgsFor system;
|
||||
packages = import ./pkgs {inherit pkgs inputs;};
|
||||
packages = supportedOn pkgs (import ./pkgs {inherit pkgs inputs;});
|
||||
in
|
||||
builtins.mapAttrs (name: pkg: pkgs.lib.hydraJob pkg) packages
|
||||
// {
|
||||
|
||||
Reference in new issue
Block a user