mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03:00
c78dc9cf5b
Adds the functional-linear-algebra library to the agda package set.
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
{ 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;
|
|
|
|
agda = withPackages [] // { inherit withPackages; };
|
|
|
|
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 { };
|
|
|
|
agda-categories = callPackage ../development/libraries/agda/agda-categories { };
|
|
|
|
cubical = callPackage ../development/libraries/agda/cubical { };
|
|
|
|
functional-linear-algebra = callPackage
|
|
../development/libraries/agda/functional-linear-algebra { };
|
|
|
|
generic = callPackage ../development/libraries/agda/generic { };
|
|
};
|
|
in mkAgdaPackages Agda
|