Commit Graph

57 Commits

Author SHA1 Message Date
Pavol Rusnak
771daa9bf5
gcc-arm-embedded-{13,14}: fix info file causing rebuild error
https://github.com/NixOS/nixpkgs/issues/363902
2025-04-14 18:58:56 +02:00
Pavol Rusnak
90c4c398dc
gcc-arm-embedded-{6,7,8,9,10,11,12}: drop 2025-04-12 21:35:48 +02:00
Pavol Rusnak
44986fd97d
gcc-arm-embedded: remove dependency on ancient Python 2025-04-12 20:26:14 +02:00
Pavol Rusnak
b7e09449e3
gcc-arm-embedded-14: init at 14.2.rel1 (#385908) 2025-04-12 20:16:12 +02:00
prtzl
5e65be67b6
gcc-arm-embedded-14: init at 14.2.rel1 2025-04-12 20:07:31 +02:00
Yureka
c18b083a06 gclient2nix: fix attrs -> args
This matches what importGclientDeps actually expects. Whoops
2025-04-08 19:10:17 +02:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Yureka
c6e2cc9b6c gclient2nix: do not depend on nixpkgs path 2025-04-07 08:43:06 +02:00
Yureka
0e730af47a gclient2nix: add importGclientDeps & gclientUnpackHook 2025-04-05 10:06:16 +02:00
Yureka
082d26cd46 gclient2nix: init 2025-04-05 10:06:16 +02:00
Nick Cao
4738dc62ba
gcsfuse: 2.11.0 -> 2.11.1 (#394194) 2025-03-30 10:09:53 -04:00
Weijia Wang
41efd5439a gcfflasher: fix darwin build 2025-03-29 11:46:21 +01:00
R. Ryantm
ef603b3bca gcfflasher: 4.6.0 -> 4.8.0 2025-03-29 11:45:03 +01:00
R. Ryantm
51ca35bdfd gcsfuse: 2.11.0 -> 2.11.1 2025-03-29 05:10:23 +00:00
Weijia Wang
aba84a6f75
gcsfuse: 2.10.0 -> 2.11.0 (#390822) 2025-03-27 15:55:48 +01:00
R. Ryantm
9b30ac5bec gci: 0.13.5 -> 0.13.6 2025-03-21 13:50:48 +00:00
R. Ryantm
1d9096d672 gcsfuse: 2.10.0 -> 2.11.0 2025-03-18 01:07:14 +00:00
Wolfgang Walther
a466f5f182
gcovr: 8.2 -> 8.3, move to pkgs/by-name (#386508) 2025-03-15 15:24:04 +00:00
Peder Bergebakken Sundt
357d2530e5 treewide: substitute pname for strings
Inspired by https://github.com/NixOS/nixpkgs/pull/387725#issuecomment-2704943777, script is based on https://github.com/NixOS/nixpkgs/pull/336172 using what i learned in https://github.com/NixOS/nixpkgs/pull/386865, part of https://github.com/NixOS/nixpkgs/issues/346453

Should be zero rebuilds.

All candidates were made using:

```shell

export NIXPKGS_ALLOW_UNFREE=1
export NIXPKGS_ALLOW_INSECURE=1
export NIXPKGS_ALLOW_BROKEN=1

git-wait restore .

test -s packages.json || ( set -x;
  time nix-env --extra-experimental-features no-url-literals --option system x86_64-linux -f ./. -qaP --json --meta --drv-path --out-path --show-trace --no-allow-import-from-derivation --arg config '{ allowAliases = false; }' > packages.json
)

list_attrpath_fname_col() {
    jq <packages.json 'to_entries[] | select(.value.meta.position==null|not) | "\(.key)\t\(.value.meta.position)"' -r |
        sed -e "s#\t$(realpath .)/#\t#" |
        sed -e 's#:\([0-9]*\)$#\t\1#' |
        grep . |
        grep -iv haskell |
        grep -iv /top-level/ |
        grep -iv chicken |
        grep pkgs/by-name/ |
        grep -iv build |
        grep -E '/(package|default)\.nix'
}

FLOCKDIR="$(mktemp -d)"
N_WORKERS=4
while read attrpath fname col; do
    grep -qE 'repo *= *("\$\{pname\}"|pname);' "$fname" || continue

    echo | (
        # mutex on fname
        flock --nonblock 200 || {
            >&2 echo "failed to aquire lock for $fname"
            exit 1
        }

        echo "$attrpath"
        data="$(nix eval --impure  --expr 'with import ./. {}; { inherit ('"$attrpath"') pname drvPath passthru meta; drvPath2='"$attrpath"'.src.drvPath; }' --json)" || exit
        test -n "$data" || exit
        pname="$(jq <<<"$data" .pname -r)"
        test -n "$pname" || exit

        (set -x
            sd -F '${pname}'  "$pname"         "$fname"
            sd -F ' = pname;' " = \"$pname\";" "$fname"
        )

        data2="$(nix eval --impure  --expr 'with import ./. {}; { inherit ('"$attrpath"') pname drvPath passthru meta; drvPath2='"$attrpath"'.src.drvPath; }' --json)"
        if [[ "$data" = "$data2" ]]; then
            (set -x; git-wait add "$fname")
        else
            (set -x; git-wait restore "$fname")
            exit
        fi

        (set -x
            sd -F ' rec {' ' {' "$fname"
        )

        data3="$(nix eval --impure  --expr 'with import ./. {}; { inherit ('"$attrpath"') pname drvPath passthru meta; drvPath2='"$attrpath"'.src.drvPath; }' --json 2>/dev/nul)"

        if [[ "$data" = "$data3" ]]; then
            (set -x; git-wait add "$fname")
        else
            (set -x; git-wait restore "$fname")
        fi

    ) 200>"$FLOCKDIR"/"$(sha256sum - <<<"$fname" | cut -d' ' -f1)".lock &

    while [[ $(jobs -p | wc -l) -ge $N_WORKERS ]]; do
        wait -n < <(jobs -p) || true
    done

done < <(list_attrpath_fname_col)

wait

git restore .

time nix-env --extra-experimental-features no-url-literals --option system x86_64-linux -f ./. -qaP --json --meta --drv-path --out-path --show-trace --no-allow-import-from-derivation --arg config '{ allowAliases = false; }' > packages2.json
```

`diff packages{,2}.json` is empty, indicating that no package nor src derivation has changed.
I checked and cherry-picked the changes using `GIT_DIFF_OPTS='-u15' git -c interactive.singleKey=true add --patch`
2025-03-11 23:55:31 +01:00
Sigmanificient
17653aecdd gcovr: move to pkgs/by-name 2025-03-07 20:40:00 +01:00
R. Ryantm
0e0e1e59d5 gcli: 2.6.1 -> 2.7.0 2025-03-04 19:12:56 +00:00
R. Ryantm
bef62d7636 gcsfuse: 2.9.0 -> 2.10.0 2025-02-22 23:11:04 +00:00
R. Ryantm
2f4fb407cf gcsfuse: 2.6.0 -> 2.9.0 2025-02-09 00:30:11 +00:00
R. Ryantm
be1e7c88cc gcfflasher: 4.5.2 -> 4.6.0 2025-02-05 13:08:56 +00:00
R. Ryantm
6b81f53036 gcli: 2.6.0 -> 2.6.1 2025-01-22 17:07:37 +00:00
Johannes Maier
c8221984a7
gcli: 2.2.0 -> 2.6.0 2025-01-18 10:26:42 +01:00
Peder Bergebakken Sundt
0cd04d3036 treewide: migrate fetchgit rev = "refs/tags/..." to tag 2025-01-04 00:19:17 +01:00
Austin Horstman
caade838e8
treewide: unpin apple-sdk_11 2025-01-02 21:40:09 -06:00
R. Ryantm
a1fde467e2 gcsfuse: 2.5.1 -> 2.6.0 2024-12-13 13:01:41 +00:00
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