mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
4d2b3b4d5a
dhallPackages.buildDhallUrl: add function for easily building dhall remote imports
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ lib
|
|
, newScope
|
|
, overrides ? (self: super: {})
|
|
}:
|
|
|
|
let
|
|
packages = self:
|
|
let
|
|
callPackage = newScope self;
|
|
|
|
buildDhallPackage =
|
|
callPackage ../development/interpreters/dhall/build-dhall-package.nix { };
|
|
|
|
buildDhallGitHubPackage =
|
|
callPackage ../development/interpreters/dhall/build-dhall-github-package.nix { };
|
|
|
|
buildDhallDirectoryPackage =
|
|
callPackage ../development/interpreters/dhall/build-dhall-directory-package.nix { };
|
|
|
|
buildDhallUrl =
|
|
callPackage ../development/interpreters/dhall/build-dhall-url.nix { };
|
|
|
|
in
|
|
{ inherit
|
|
callPackage
|
|
buildDhallPackage
|
|
buildDhallGitHubPackage
|
|
buildDhallDirectoryPackage
|
|
buildDhallUrl
|
|
;
|
|
|
|
lib = import ../development/dhall-modules/lib.nix { inherit lib; };
|
|
|
|
dhall-grafana =
|
|
callPackage ../development/dhall-modules/dhall-grafana.nix { };
|
|
|
|
dhall-kubernetes =
|
|
callPackage ../development/dhall-modules/dhall-kubernetes.nix { };
|
|
|
|
Prelude =
|
|
callPackage ../development/dhall-modules/Prelude.nix { };
|
|
};
|
|
|
|
in
|
|
lib.fix' (lib.extends overrides packages)
|