2019-12-29 13:14:16 +01:00
|
|
|
{ pkgs, lib, callPackage, newScope, Agda }:
|
|
|
|
|
|
|
|
let
|
|
|
|
mkAgdaPackages = Agda: lib.makeScope newScope (mkAgdaPackages' Agda);
|
|
|
|
mkAgdaPackages' = Agda: self: let
|
|
|
|
callPackage = self.callPackage;
|
|
|
|
inherit (callPackage ../build-support/agda {
|
|
|
|
inherit Agda self;
|
|
|
|
inherit (pkgs.haskellPackages) ghcWithPackages;
|
|
|
|
}) withPackages mkDerivation;
|
|
|
|
in {
|
|
|
|
inherit mkDerivation;
|
|
|
|
|
2021-01-18 20:01:31 +01:00
|
|
|
lib = lib.extend (final: prev: import ../build-support/agda/lib.nix { lib = prev; });
|
|
|
|
|
2021-02-05 14:24:54 +01:00
|
|
|
agda = withPackages [] // {
|
|
|
|
inherit withPackages;
|
|
|
|
passthru.tests.allPackages = withPackages (lib.filter (pkg: self.lib.isUnbrokenAgdaPackage pkg) (lib.attrValues self));
|
|
|
|
};
|
2019-12-29 13:14:16 +01:00
|
|
|
|
|
|
|
standard-library = callPackage ../development/libraries/agda/standard-library {
|
|
|
|
inherit (pkgs.haskellPackages) ghcWithPackages;
|
|
|
|
};
|
|
|
|
|
|
|
|
iowa-stdlib = callPackage ../development/libraries/agda/iowa-stdlib { };
|
|
|
|
|
|
|
|
agda-prelude = callPackage ../development/libraries/agda/agda-prelude { };
|
2019-12-29 18:22:00 +01:00
|
|
|
|
|
|
|
agda-categories = callPackage ../development/libraries/agda/agda-categories { };
|
2020-05-19 19:20:35 +02:00
|
|
|
|
|
|
|
cubical = callPackage ../development/libraries/agda/cubical { };
|
2020-08-10 11:02:57 +02:00
|
|
|
|
2020-10-14 04:30:20 +02:00
|
|
|
functional-linear-algebra = callPackage
|
|
|
|
../development/libraries/agda/functional-linear-algebra { };
|
|
|
|
|
2020-08-10 11:02:57 +02:00
|
|
|
generic = callPackage ../development/libraries/agda/generic { };
|
2020-10-12 20:00:06 +02:00
|
|
|
|
|
|
|
agdarsec = callPackage ../development/libraries/agda/agdarsec { };
|
2019-12-29 13:14:16 +01:00
|
|
|
};
|
|
|
|
in mkAgdaPackages Agda
|