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