depot/third_party/nixpkgs/pkgs/os-specific/darwin/apple-source-releases/Csu/package.nix

31 lines
633 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
lib,
makeSetupHook,
mkAppleDerivation,
stdenv,
}:
mkAppleDerivation {
releaseName = "Csu";
makeFlags = [
"CC=${stdenv.cc.targetPrefix}clang"
"CHMOD=chmod"
"MKDIR=mkdir"
"USRLIBDIR=/lib"
"LOCLIBDIR=/lib"
];
installFlags = [ "DSTROOT=$(out)" ];
setupHooks = [
../../../../build-support/setup-hooks/role.bash
# ccWrapper_addCVars doesnt add Csu to `NIX_LDFLAGS` because it contains objects and no dylibs.
./setup-hooks/add-Csu-lib-path.sh
];
meta = {
description = "Common startup stubs for Darwin";
badPlatforms = [ lib.systems.inspect.patterns.isAarch ];
};
}