Remove deprecated package bindings

This commit is contained in:
Ivan Petkov 2022-10-09 14:16:29 -07:00
parent f2a92d6010
commit 1020bbe7dd
3 changed files with 19 additions and 16 deletions

View File

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## Unreleased
### Changed
* **Breaking**: all setup hooks have been removed from the `packages` flake
output. They can still be accessed via the `lib` flake output.
## [0.8.0] - 2022-10-09
### Added

View File

@ -16,12 +16,17 @@
inherit (pkgs) lib newScope;
};
myPkgsFor = pkgs: import ./pkgs (mkLib pkgs);
myPkgsFor = { pkgs, myLib }: import ./pkgs {
inherit pkgs myLib;
};
in
{
inherit mkLib;
overlays.default = final: prev: myPkgsFor final;
overlays.default = final: prev: myPkgsFor {
pkgs = final;
myLib = mkLib final;
};
templates = rec {
alt-registry = {
@ -63,7 +68,10 @@
# To override do: lib.overrideScope' (self: super: { ... });
lib = mkLib pkgs;
myPkgs = myPkgsFor pkgs;
myPkgs = myPkgsFor {
inherit pkgs;
myLib = lib;
};
checks = pkgs.callPackages ./checks {
inherit pkgs myPkgs;

View File

@ -1,15 +1,6 @@
myLib:
let
mkDeprecated = name:
builtins.trace "packages.${name} is deprecated, please use craneLib.${name} instead"
myLib.${name};
in
{ myLib
, pkgs
}:
{
cargoHelperFunctionsHook = mkDeprecated "cargoHelperFunctionsHook";
configureCargoCommonVarsHook = mkDeprecated "configureCargoCommonVarsHook";
configureCargoVendoredDepsHook = mkDeprecated "configureCargoVendoredDepsHook";
inheritCargoArtifactsHook = mkDeprecated "inheritCargoArtifactsHook";
installCargoArtifactsHook = mkDeprecated "installCargoArtifactsHook";
installFromCargoBuildLogHook = mkDeprecated "installFromCargoBuildLogHook";
removeReferencesToVendoredSourcesHook = mkDeprecated "removeReferencesToVendoredSourcesHook";
}