mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-29 21:42:23 +03:00
Remove deprecated package
bindings
This commit is contained in:
parent
f2a92d6010
commit
1020bbe7dd
@ -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
|
||||
|
14
flake.nix
14
flake.nix
@ -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;
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user