crane/pkgs/configureCargoCommonVars.nix
Ivan Petkov 5c8e7f732f
Fix callPackage scopes for build hooks so cross compiling works
* Previously all build hooks were instantiated in a single
  `callPackages` call which led to several issues:
  - changes via `lib.overrideScope'` were ignored because the build
    hooks were only ever instantiated with the nixpkgs instance of our
    flake (not whatever overlays the caller may have made)
  - the pkgs splicing was not done quite right, meaning when we pull in
    the build hooks as nativeBuildInputs the splicing wasn't picking up
    the overridden versions of `cargo` but was instead trying to
    recompile the nixpkgs version each time
2022-02-14 18:31:45 -08:00

8 lines
113 B
Nix

{ makeSetupHook
}:
makeSetupHook
{
name = "configureCargoCommonVarsHook";
} ./configureCargoCommonVarsHook.sh