mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-27 02:52:02 +03:00
5c8e7f732f
* 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
13 lines
196 B
Nix
13 lines
196 B
Nix
{ makeSetupHook
|
|
, pkgsBuildBuild
|
|
}:
|
|
|
|
makeSetupHook
|
|
{
|
|
name = "inheritCargoArtifactsHook";
|
|
substitutions = {
|
|
zstd = "${pkgsBuildBuild.zstd}/bin/zstd";
|
|
};
|
|
} ./inheritCargoArtifactsHook.sh
|
|
|