···27 officialRelease ? null,
28 monorepoSrc ? null,
29 version ? null,
30+ patchesFn ? lib.id,
31 # Allows passthrough to packages via newScope. This makes it possible to
32 # do `(llvmPackages.override { <someLlvmDependency> = bar; }).clang` and get
33 # an llvmPackages whose packages are overridden in an internally consistent way.
···81 name = builtins.baseNameOf p;
82 path =
83 let
84+ patches = args.patchesFn (import ./patches.nix);
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008586 constraints = patches."${p}" or null;
87 matchConstraint =
···14 bootBintoolsNoLibc ? if stdenv.targetPlatform.linker == "lld" then null else pkgs.bintoolsNoLibc,
15 bootBintools ? if stdenv.targetPlatform.linker == "lld" then null else pkgs.bintools,
16 llvmVersions ? { },
017 # Allows passthrough to packages via newScope in ./common/default.nix.
18 # This makes it possible to do
19 # `(llvmPackages.override { <someLlvmDependency> = bar; }).clang` and get
···74 gitRelease
75 monorepoSrc
76 version
077 ;
78 }
79 // packageSetArgs # Allow overrides.
···14 bootBintoolsNoLibc ? if stdenv.targetPlatform.linker == "lld" then null else pkgs.bintoolsNoLibc,
15 bootBintools ? if stdenv.targetPlatform.linker == "lld" then null else pkgs.bintools,
16 llvmVersions ? { },
17+ patchesFn ? lib.id,
18 # Allows passthrough to packages via newScope in ./common/default.nix.
19 # This makes it possible to do
20 # `(llvmPackages.override { <someLlvmDependency> = bar; }).clang` and get
···75 gitRelease
76 monorepoSrc
77 version
78+ patchesFn
79 ;
80 }
81 // packageSetArgs # Allow overrides.