2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, newScope
|
|
|
|
, overrides ? (self: super: {})
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
packages = self:
|
|
|
|
let
|
|
|
|
callPackage = newScope self;
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
prefer = version: path:
|
|
|
|
let
|
|
|
|
packages = callPackage path { };
|
|
|
|
|
|
|
|
in
|
|
|
|
packages."${version}".overrideAttrs (_: {
|
|
|
|
passthru = packages;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildDhallPackage =
|
|
|
|
callPackage ../development/interpreters/dhall/build-dhall-package.nix { };
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
buildDhallGitHubPackage =
|
|
|
|
callPackage ../development/interpreters/dhall/build-dhall-github-package.nix { };
|
|
|
|
|
|
|
|
buildDhallDirectoryPackage =
|
|
|
|
callPackage ../development/interpreters/dhall/build-dhall-directory-package.nix { };
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
2020-06-18 07:06:33 +00:00
|
|
|
{ inherit
|
|
|
|
buildDhallPackage
|
|
|
|
buildDhallGitHubPackage
|
|
|
|
buildDhallDirectoryPackage
|
|
|
|
;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dhall-kubernetes =
|
2020-06-18 07:06:33 +00:00
|
|
|
prefer "3.0.0" ../development/dhall-modules/dhall-kubernetes.nix;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dhall-packages =
|
2020-06-18 07:06:33 +00:00
|
|
|
prefer "0.11.1" ../development/dhall-modules/dhall-packages.nix;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
Prelude =
|
2020-06-18 07:06:33 +00:00
|
|
|
prefer "13.0.0" ../development/dhall-modules/Prelude.nix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
lib.fix' (lib.extends overrides packages)
|