This repository has no description
889 B
29 lines
1{ ... }:
2{
3 perSystem =
4 {
5 lib,
6 pkgs,
7 inputs',
8 ...
9 }:
10 {
11 packages =
12 let
13 # pkgs.callPackage plus llm-agents, for packages that patch one of
14 # its agents (pkgs.orca is the GNOME screen reader, not this one).
15 callPackage = pkgs.newScope { llm-agents = inputs'.llm-agents.packages; };
16
17 allPackages = lib.packagesFromDirectoryRecursive {
18 inherit callPackage;
19 directory = ./.;
20 };
21 in
22 # Packages for other platforms are left out via meta.platforms, so a
23 # package's meta must evaluate on every system, also on the ones it
24 # does not support; a package that throws breaks the evaluation.
25 lib.filterAttrs (
26 name: pkg: name != "flake-module" && lib.meta.availableOn pkgs.stdenv.hostPlatform pkg
27 ) allPackages;
28 };
29}