Commit Graph

27 Commits

Author SHA1 Message Date
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Aleksana
8695054aee
gcalcli: 4.4.0 -> 4.5.1 (#352984) 2024-12-06 23:24:50 +08:00
R. Ryantm
4c5015ad7d gcov2lcov: 1.1.0 -> 1.1.1 2024-11-29 19:33:32 +00:00
R. Ryantm
c8b7043ed3 gcfflasher: 4.4.0 -> 4.5.2 2024-11-25 14:03:35 +00:00
Ihar Hrachyshka
4e84219665 gcalcli: 4.4.0 -> 4.5.1 2024-11-14 22:02:28 -05:00
Peder Bergebakken Sundt
00baab49a1
gcs: 5.27.0 -> 5.28.1 (#351952) 2024-11-14 02:54:23 +01:00
Weijia Wang
ca3eca77cd gcsfuse: mark as broken on darwin 2024-11-10 02:14:01 +01:00
R. Ryantm
64b28c617d gcsfuse: 2.4.0 -> 2.5.1 2024-11-10 02:14:01 +01:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00
TomaSajt
2167c83d18
gcs: 5.27.0 -> 5.28.1 2024-11-01 20:59:18 +01:00
TomaSajt
4fbd79e56f
gcs: use apple-sdk_11, use lib.optionals for linux deps 2024-10-31 21:12:05 +01:00
TomaSajt
0804e27a73
gcs: 5.21.0 -> 5.27.0 2024-09-28 00:37:32 +02: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
Martin Weinelt
abdf5dc772
treewide: remove pythonRelaxDepsHook references
It is is now provided automatically, when `pythonRelaxDeps` or
`pythonRemoveDeps` is defined through `mk-python-derivation`.
2024-06-14 14:52:00 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
TomaSajt
4903f64bcd
gcs: 5.20.4 -> 5.21.0 2024-04-21 15:32:12 +02:00
TomaSajt
fe516ada1d
gcs: format with nixfmt 2024-04-21 13:45:08 +02:00
Paul Meyer
fba7582947 treewide: remove explicit -trimpath from Go pkgs 2024-03-28 07:57:19 +01: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
Weijia Wang
90b4ffbd45
Merge pull request #286810 from wegank/gcli-platforms
gcli: set meta.platforms
2024-02-08 01:26:32 +01:00
Weijia Wang
c01ca5c173 gcli: set meta.platforms 2024-02-06 21:55:03 +01:00
R. Ryantm
c1d84ca2f2 gcli: 2.1.0 -> 2.2.0 2024-02-06 05:35:23 +00:00
Fabian Affolter
56a2aff58c gcp-scanner: 1.3.0 -> 1.4.0
Diff: https://github.com/google/gcp_scanner/compare/refs/tags/v1.4.0...v1.4.0

Changelog: https://github.com/google/gcp_scanner/blob/1.4.0/CHANGELOG.md
2024-02-05 10:11:22 +01:00
Toma
9188d39c92
gcs: 4.8.0 -> 5.20.4, adopt, refactor (#279271)
* gcs: 4.8.0 -> 5.20.4, adopt, refactor

---------

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
2024-01-30 15:09:54 +01:00
R. Ryantm
bc9e74ff40 gcli: 2.0.0 -> 2.1.0 2023-12-11 05:19:17 +00:00
Johannes Maier
40fb3ac069 gcli: init at 2.0.0 2023-11-25 19:48:48 +01:00
Fabian Affolter
5bb41dcaef gcp-scanner: init at 1.3.0
A comprehensive scanner for Google Cloud

https://github.com/google/gcp_scanner
2023-11-20 14:53:15 +01:00