1 { pkgs, lib, callPackage, newScope, Agda }:
4 mkAgdaPackages = Agda: lib.makeScope newScope (mkAgdaPackages' Agda);
5 mkAgdaPackages' = Agda: self: let
6 callPackage = self.callPackage;
7 inherit (callPackage ../build-support/agda {
9 inherit (pkgs.haskellPackages) ghcWithPackages;
10 }) withPackages mkDerivation;
14 lib = lib.extend (final: prev: import ../build-support/agda/lib.nix { lib = prev; });
16 agda = withPackages [] // {
18 passthru.tests.allPackages = withPackages (lib.filter (pkg: self.lib.isUnbrokenAgdaPackage pkg) (lib.attrValues self));
21 standard-library = callPackage ../development/libraries/agda/standard-library {
22 inherit (pkgs.haskellPackages) ghcWithPackages;
25 iowa-stdlib = callPackage ../development/libraries/agda/iowa-stdlib { };
27 agda-prelude = callPackage ../development/libraries/agda/agda-prelude { };
29 agda-categories = callPackage ../development/libraries/agda/agda-categories { };
31 cubical = callPackage ../development/libraries/agda/cubical { };
33 functional-linear-algebra = callPackage
34 ../development/libraries/agda/functional-linear-algebra { };
36 generic = callPackage ../development/libraries/agda/generic { };
38 agdarsec = callPackage ../development/libraries/agda/agdarsec { };
40 in mkAgdaPackages Agda