2023-02-12 16:44:16 +03:00
|
|
|
{ pkgs, lib, newScope, Agda }:
|
2019-12-29 15:14:16 +03:00
|
|
|
|
|
|
|
let
|
|
|
|
mkAgdaPackages = Agda: lib.makeScope newScope (mkAgdaPackages' Agda);
|
|
|
|
mkAgdaPackages' = Agda: self: let
|
2023-02-12 16:44:16 +03:00
|
|
|
inherit (self) callPackage;
|
2019-12-29 15:14:16 +03:00
|
|
|
inherit (callPackage ../build-support/agda {
|
|
|
|
inherit Agda self;
|
|
|
|
inherit (pkgs.haskellPackages) ghcWithPackages;
|
|
|
|
}) withPackages mkDerivation;
|
|
|
|
in {
|
|
|
|
inherit mkDerivation;
|
|
|
|
|
2021-01-18 22:01:31 +03:00
|
|
|
lib = lib.extend (final: prev: import ../build-support/agda/lib.nix { lib = prev; });
|
|
|
|
|
2023-02-12 16:44:16 +03:00
|
|
|
agda = withPackages [];
|
2019-12-29 15:14:16 +03: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 20:22:00 +03:00
|
|
|
|
|
|
|
agda-categories = callPackage ../development/libraries/agda/agda-categories { };
|
2020-05-19 20:20:35 +03:00
|
|
|
|
|
|
|
cubical = callPackage ../development/libraries/agda/cubical { };
|
2020-08-10 12:02:57 +03:00
|
|
|
|
2020-10-14 05:30:20 +03:00
|
|
|
functional-linear-algebra = callPackage
|
|
|
|
../development/libraries/agda/functional-linear-algebra { };
|
|
|
|
|
2020-08-10 12:02:57 +03:00
|
|
|
generic = callPackage ../development/libraries/agda/generic { };
|
2020-10-12 21:00:06 +03:00
|
|
|
|
|
|
|
agdarsec = callPackage ../development/libraries/agda/agdarsec { };
|
2023-08-06 13:27:44 +03:00
|
|
|
|
|
|
|
_1lab = callPackage ../development/libraries/agda/1lab { };
|
2019-12-29 15:14:16 +03:00
|
|
|
};
|
|
|
|
in mkAgdaPackages Agda
|