fixDarwinDylibNames: use callPackage; use targetPackages.stdenv.cc for targetPrefix (#425994)
This commit is contained in:
@@ -879,11 +879,18 @@ with pkgs;
|
||||
name = "set-java-classpath-hook";
|
||||
} ../build-support/setup-hooks/set-java-classpath.sh;
|
||||
|
||||
fixDarwinDylibNames = makeSetupHook {
|
||||
name = "fix-darwin-dylib-names-hook";
|
||||
substitutions = { inherit (darwin.binutils) targetPrefix; };
|
||||
meta.platforms = lib.platforms.darwin;
|
||||
} ../build-support/setup-hooks/fix-darwin-dylib-names.sh;
|
||||
fixDarwinDylibNames = callPackage (
|
||||
{
|
||||
lib,
|
||||
targetPackages,
|
||||
makeSetupHook,
|
||||
}:
|
||||
makeSetupHook {
|
||||
name = "fix-darwin-dylib-names-hook";
|
||||
substitutions = { inherit (targetPackages.stdenv.cc) targetPrefix; };
|
||||
meta.platforms = lib.platforms.darwin;
|
||||
} ../build-support/setup-hooks/fix-darwin-dylib-names.sh
|
||||
) { };
|
||||
|
||||
writeDarwinBundle = callPackage ../build-support/make-darwin-bundle/write-darwin-bundle.nix { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user