Commit graph

60 commits

Author SHA1 Message Date
Peder Bergebakken Sundt
c77ac9dfc3 treewide: fix typos 2025-06-02 16:07:07 +02:00
Fernando Rodrigues
05580f4b44
treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
Randy Eckenrode
5d09f1a60c
bazel_{5,6,7}: get libc++ headers on Darwin from stdenv.cc.libcxx 2025-04-18 19:06:37 -04:00
Henner Zeller
2854768f67 bazel_7: 7.4.1 -> 7.6.0 2025-03-25 21:53:42 -07:00
Samuel Ainsworth
f638e0b4c4 bazel_{5,6,7}: add meta.mainProgram 2025-03-16 00:54:57 -04:00
Wolfgang Walther
b19d0f6d3d
treewide: replace substituteAll with replaceVars 2025-02-10 22:51:56 +01:00
Weijia Wang
79660b4ef4 bazel_7: use new apple sdk pattern 2025-01-03 18:35:59 +01:00
Dmitry Ivankov
e34631a069 bazel_7: cleanup dead files
There are some unused patch files and files related to tests that
aren't used, were likely copied from `bazel_6` but weren't make to work.

It is quite possible that https://github.com/bazelbuild/examples won't
be a good fit to test recent bazel versions so better cleanup
non-working code and remain open for any working way to add tests.
The deleted stuff still remains in git history and in bazel 6 and below
packages for reference if needed.
2024-12-05 21:56:17 +01:00
Felix Buehler
543abba9d0 bazel_7: fix fhsenv version 2024-11-28 22:06:30 +01:00
Dmitry Ivankov
fb2deacbba bazel_7: rename: nix-hacks.patch -> nix-build-bazel-package-hacks.patch 2024-11-17 12:18:12 +01:00
Dmitry Ivankov
82c4c76594 darwin bazelDeps hashes 2024-11-13 19:30:57 +01:00
Dmitry Ivankov
369ca2bdb6 bazel_7: 7.4.0 -> 7.4.1 2024-11-13 19:18:26 +01:00
Dmitry Ivankov
04adc05ffe
Update pkgs/development/tools/build-managers/bazel/bazel_7/default.nix 2024-11-12 18:31:46 +01:00
Dmitry Ivankov
a8892ad6ae
Update pkgs/development/tools/build-managers/bazel/bazel_7/default.nix 2024-11-12 18:18:09 +01:00
Dmitry Ivankov
83bc60628c bazel_7: 7.3.1 -> 7.4.0 2024-11-12 16:26:03 +01:00
flurie
097532a3cc add libtool to darwin bazel deps 2024-10-20 16:11:42 -04:00
flurie
6aae06b8ce use mktemp instead of TMP for deps 2024-10-02 11:38:46 -04:00
flurie
46016bada3 fix whitespace 2024-10-01 19:59:27 -04:00
flurie
bd5023c4ea fix deps hashes for linux 2024-10-01 18:56:04 -04:00
flurie
77c941be7f fix deps and hashes for darwin 2024-10-01 18:29:42 -04:00
flurie
bee45a2c28 correct x86_64-linux deps sha 2024-10-01 18:29:42 -04:00
flurie
3de687a6b6 get linux/aarch64-darwin builds working 2024-10-01 18:29:42 -04:00
Alexander Flurie
76bf576d03 use camelCase for FODs, fix deps FOD 2024-10-01 18:29:42 -04:00
Alexander Flurie
8e8d4a6c36 set meta.sourceProvenance for bazel bootstrap 2024-10-01 18:29:42 -04:00
Alexander Flurie
95a4a50c09 make bazel bootstrap multi-platform 2024-10-01 18:29:42 -04:00
flurie
cfae44ae9c bazel: 7.1.2 -> 7.3.1 2024-10-01 18:29:02 -04:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Malte Poll
c429fa2ffa
bazel_7: 7.1.0 -> 7.1.2 (#314279)
* bazel_7: 7.1.0 -> 7.1.2

* bazel_7: update lockfiles

* bazel_7: upgrade lockfile format for versions > 3

The new lockfile format 6 drops the "name" attribute of each repoSpec.
See also: https://github.com/bazelbuild/bazel/pull/21026
This prevents the builder from effectively the deps using
requiredDepNamePredicate.
Instead, we now generate names from other metadata.
2024-06-03 13:34:49 +02:00
Mario Rodas
d97629acad
Merge pull request #295615 from Strum355/bazel-7.1.0
bazel: 7.0.2 -> 7.1.0
2024-04-24 22:54:42 -05:00
Claudio
bb8574ddb8 bazel_6: Add patch for system sleep on Darwin
This re-uses the same patch as bazel_7 which indeed is also necessary here, since
otherwise building bazel_6 failed with

```
FATAL: CHECK failed: (success) == (0):
```

at d839db66ee/src/main/native/darwin/sleep_prevention_jni.cc (L39)
2024-04-08 16:40:31 +02:00
Noah Santschi-Cooney
1e01835f07
bazel: 7.0.2 -> 7.1.0 2024-03-13 16:35:36 +00:00
a-n-n-a-l-e-e
ce789e7e35
llvmPackages_{12,13,14,15,16,17,git}.{libcxx,libcxxabi}: merge libcxxabi into libcxx (#292043)
- merge libcxxabi into libcxx for LLVM 12, 13, 14, 15, 16, 17, and git.
- remove the link time workaround `-lc++ -lc++abi` from 58 packages as it is no longer required.
- fixes https://github.com/NixOS/nixpkgs/issues/166205
- provides alternative fixes for. https://github.com/NixOS/nixpkgs/issues/269548 https://github.com/NixOS/nix/issues/9640
- pkgsCross.x86_64-freebsd builds work again

This change can be represented in 3 stages
1. merge libcxxabi into libcxx -- files: pkgs/development/compilers/llvm/[12, git]/{libcxx, libcxxabi}
2. update stdenv to account for merge -- files: stdenv.{adapters, cc.wrapper, darwin}
3. remove all references to libcxxabi outside of llvm (about 58 packages modified)

### merging libcxxabi into libcxx
- take the union of the libcxxabi and libcxx cmake flags
- eliminate the libcxx-headers-only package - it was only needed to break libcxx <-> libcxxabi circular dependency
- libcxx.cxxabi is removed. external cxxabi (freebsd) will symlink headers / libs into libcxx.
- darwin will re-export the libcxxabi symbols into libcxx so linking `-lc++` is sufficient.
- linux/freebsd `libc++.so` is a linker script `LINK(libc++.so.1, -lc++abi)` making `-lc++` sufficient.
- libcxx/default.nix [12, 17] are identical except for patches and `LIBCXX_ADDITIONAL_LIBRARIES` (only used in 16+)
- git/libcxx/defaul.nix  does not link with -nostdlib when useLLVM is true so flag is removed. this is not much different than before as libcxxabi used -nostdlib where libcxx did not, so libc was linked in anyway.

### stdenv changes
- darwin bootstrap, remove references to libcxxabi and cxxabi
- cc-wrapper: remove c++ link workaround when libcxx.cxxabi doesn't exist (still exists for LLVM pre 12)
- adapter: update overrideLibcxx to account for a pkgs.stdenv that only has libcxx

### 58 package updates
- remove `NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}` as no longer needed
- swift, nodejs_v8 remove libcxxabi references in the clang override

https://github.com/NixOS/nixpkgs/pull/292043
2024-03-11 03:53:37 -07:00
Noah Santschi-Cooney
ef302f8c2a
bazel: 7.0.0 -> 7.0.2 2024-02-01 14:15:34 +00:00
Guillaume Maudoux
e8e45bc82e bazel_7: Check-in the main lockfile 2023-12-31 14:04:38 +01:00
Guillaume Maudoux
166e47c58b bazel_7: improve lockfile parsing 2023-12-31 12:27:55 +01:00
Guillaume Maudoux
2a4700c48b bazel_7: Add regression test for empty lockfiles 2023-12-18 20:09:34 +01:00
Guillaume Maudoux
eaa9b99502 fixup! bazel_7: backport bazel_6 bash fixes for remote execution 2023-12-18 20:09:07 +01:00
Guillaume Maudoux
1795976a32 bazel_7: Unse runJDK for runtime 2023-12-18 17:33:28 +01:00
Guillaume Maudoux
f35225d3d6 bazel_7: backport bazel_6 bash fixes for remote execution 2023-12-18 17:32:07 +01:00
Guillaume Maudoux
0d222a3580 bazel_7: re-enable arc in xcode_locator command 2023-12-14 09:00:36 +01:00
Guillaume Maudoux
6d93cdd566 bazel_7: restore xcode_locator no-arc fix, still needed 2023-12-13 23:16:33 +01:00
Guillaume Maudoux
5fc2602a32 bazel_7: restore xcode_locator patch from no-arc patch 2023-12-13 22:55:00 +01:00
Guillaume Maudoux
f8eaea18b0 bazel_7: address most review comments 2023-12-13 22:48:28 +01:00
Guillaume Maudoux
2a92a2304a bazel_7: 7.0.0rc7 -> 7.0.0 2023-12-13 22:48:28 +01:00
Dmitry Ivankov
306e8eaf53 bazel_7: fix darwin compilation with CLang 16 & recent nixpkgs/master
Workaround for #166205 similar to
51451ac406

And warning fix similar to `bazel_6` fix for
```
external/upb~0.0.0-20220923-a547704/upb/mini_table.c:634:14: error: defining a type within '__builtin_offsetof' is a Clang extension [-Werror,-Wgnu-offsetof-extensions]
  UPB_ASSERT(UPB_ALIGN_OF(upb_StringView) ==
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
2023-12-13 22:48:28 +01:00
Guillaume Maudoux
4d54ca897b bazel_7: 7.0.0rc2 -> 7.0.0rc7 2023-12-13 22:48:28 +01:00
Guillaume Maudoux
05ecc09b57 Bump to 7.0.0rc2 2023-12-13 22:48:27 +01:00
Guillaume Maudoux
622804ab5d Add 7.0.0rc2, but some patches need an update 2023-12-13 22:48:27 +01:00
Guillaume Maudoux
be69c186cc Rework repository_cache, lockfile generation, and protobuf tests as a whole 2023-12-13 22:48:27 +01:00
Guillaume Maudoux
229bce1095 bazel_7: Cleanup patchPhase 2023-12-13 22:48:26 +01:00