mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03:00
82425ca793
* Fix `dhallPackages` to be defined using `callPackage` instead of `callPackages` This enables the `pkgs.dhallPackages.override` method * Export `pkgs.dhallPackages.callPackage` This is also necessary in order to easily extend `pkgs.dhallPackages` with new packages
42 lines
1.0 KiB
Nix
42 lines
1.0 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 { };
|
|
|
|
in
|
|
{ inherit
|
|
callPackage
|
|
buildDhallPackage
|
|
buildDhallGitHubPackage
|
|
buildDhallDirectoryPackage
|
|
;
|
|
|
|
lib = import ../development/dhall-modules/lib.nix { inherit lib; };
|
|
|
|
dhall-kubernetes =
|
|
callPackage ../development/dhall-modules/dhall-kubernetes.nix { };
|
|
|
|
dhall-packages =
|
|
callPackage ../development/dhall-modules/dhall-packages.nix { };
|
|
|
|
Prelude =
|
|
callPackage ../development/dhall-modules/Prelude.nix { };
|
|
};
|
|
|
|
in
|
|
lib.fix' (lib.extends overrides packages)
|