File tree Expand file tree Collapse file tree
pkgs/development/compilers/llvm/common/libc Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 cp -r ${ monorepoSrc } /third-party "$out"
3232 ''
3333 ) ;
34+
35+ needHdrGen = isFullBuild || lib . versionAtLeast release_version "22" ;
3436in
3537stdenv . mkDerivation ( finalAttrs : {
3638 inherit pname version patches ;
@@ -44,13 +46,13 @@ stdenv.mkDerivation (finalAttrs: {
4446 python3
4547 ninja
4648 ]
47- ++ ( lib . optional isFullBuild python3Packages . pyyaml ) ;
49+ ++ ( lib . optional needHdrGen python3Packages . pyyaml ) ;
4850
4951 buildInputs = lib . optional ( isFullBuild && stdenv . hostPlatform . isLinux ) linuxHeaders ;
5052
5153 outputs = [ "out" ] ++ ( lib . optional isFullBuild "dev" ) ;
5254
53- postUnpack = lib . optionalString isFullBuild ''
55+ postUnpack = lib . optionalString needHdrGen ''
5456 chmod +w $sourceRoot/../$pname/utils/hdrgen
5557 patchShebangs $sourceRoot/../$pname/utils/hdrgen/main.py
5658 chmod +x $sourceRoot/../$pname/utils/hdrgen/main.py
You can’t perform that action at this time.
0 commit comments