Commit Graph

57 Commits

Author SHA1 Message Date
Emily
f9e8c0b41f codeium: drop x86_64-darwin from update script 2026-07-15 03:58:17 +01:00
Emily
fdb820602b treewide: drop simple x86_64-darwin mentions
To reproduce:

    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: nix-x86_64-darwin
          language: nix
          rule:
            any:
              - pattern: "\"x86_64-darwin\""
                kind: list_expression > string_expression
              - pattern:
                  context: "{ \"x86_64-darwin\" = $EXPR; }"
                  selector: binding
              - pattern:
                  context: "{ x86_64-darwin = $EXPR; }"
                  selector: binding
          fix:
            template: ""
        ' pkgs
    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: json-first-x86_64-darwin
          language: json
          rule:
            kind: object > pair:nth-child(1)
            has:
              pattern: "\"x86_64-darwin\""
              field: key
          fix:
            template: ""
            expandEnd: { regex: "," }
        ' pkgs
    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: json-x86_64-darwin
          language: json
          rule:
            kind: object > pair
            has:
              pattern: "\"x86_64-darwin\""
              field: key
          fix:
            template: ""
            expandStart: { regex: "," }
        ' pkgs
    $ git restore pkgs/by-name/om/omnix/package.nix
    $ git diff --name-only -z \
        | nix shell nixpkgs/3b32825de172d0bc85664f495edb096b10862524#gnused \
            -c xargs -0 sed -i '/^$/N; /^\n\? \+$/d'
    $ treefmt
2026-07-15 03:58:16 +01:00
R. Ryantm
72faebc71d codeium: 1.46.3 -> 2.12.5 2026-01-29 06:15:01 +00:00
Jonathan Davies
116036d574 treewide: Remove redundant versionCheckProgramArg = "--version"; with:
```shell
git grep -l -e 'versionCheckProgramArg = "--version";' -e 'versionCheckProgramArg = \[ "--version" \];' | while read f; do
  sed -i '/versionCheckProgramArg/d' "$f"
  sed -i '/^$/N;/\n$/D' "$f"
done
```
2025-11-20 10:39:02 +00:00
R. Ryantm
2a82c5b28a codeium: 1.46.0 -> 1.46.3 2025-05-04 18:35:56 +00:00
R. Ryantm
fc8ba167be codeium: 1.42.4 -> 1.46.0 2025-04-16 15:42:53 +00:00
Gaetan Lepage
bfe27cf81c treewide: use a string for versionCheckProgramArg where possible 2025-04-05 14:45:13 +02:00
R. Ryantm
cf42c6b61a codeium: 1.42.3 -> 1.42.4 2025-03-27 06:53:10 +00:00
R. Ryantm
a3e93dbfc8 codeium: 1.40.1 -> 1.42.3 2025-03-16 09:01:57 +00:00
R. Ryantm
3d00b60a34 codeium: 1.38.0 -> 1.40.1 2025-03-03 09:11:51 +00:00
R. Ryantm
262940c69d codeium: 1.32.1 -> 1.38.0 2025-02-18 09:27:50 +00:00
R. Ryantm
ebc7d18ebe codeium: 1.30.18 -> 1.32.1 2025-01-10 07:15:46 +00:00
R. Ryantm
46858a2be4 codeium: 1.30.2 -> 1.30.18 2024-12-30 22:01:45 +00:00
R. Ryantm
3dd4efb0a6 codeium: 1.24.2 -> 1.30.2 2024-12-10 04:39:52 +00:00
Gaetan Lepage
b7f742a510 codeium: add versionCheckHook 2024-11-30 17:20:26 +01:00
Gaetan Lepage
76ba7a02ba codeium: correct meta.mainProgram 2024-11-30 17:20:19 +01:00
Gaetan Lepage
635d9c8692 codeium: format 2024-11-30 17:17:54 +01:00
R. Ryantm
7f3c1492e7 codeium: 1.20.4 -> 1.24.2 2024-10-26 10:01:48 +00:00
R. Ryantm
060fb7ee82 codeium: 1.16.18 -> 1.20.4 2024-10-01 19:11:55 +00:00
OTABI Tomoya
73077c53b6 codeium: 1.16.11 -> 1.16.18 (#344081) 2024-09-30 21:43:22 +09: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
R. Ryantm
aef3e2c8cc codeium: 1.16.11 -> 1.16.18 2024-09-23 22:27:43 +00:00
R. Ryantm
4b5dd70639 codeium: 1.14.15 -> 1.16.11 2024-09-14 02:56:19 +00:00
R. Ryantm
9fcdfda336 codeium: 1.14.11 -> 1.14.15 2024-09-03 08:44:30 +00:00
R. Ryantm
3695d746a2 codeium: 1.10.0 -> 1.14.11 2024-08-28 07:24:58 +00:00
Gaetan Lepage
894542eecb codeium: 1.8.80 -> 1.10.0 2024-07-25 07:38:57 +02:00
Gaetan Lepage
d959d69fa1 codeium: 1.8.69 -> 1.8.80 2024-07-04 10:31:00 +02:00
R. Ryantm
519b678e12 codeium: 1.8.61 -> 1.8.69 2024-06-23 00:05:30 +00:00
Gaetan Lepage
003f25c869 codeium: 1.8.57 -> 1.8.61 2024-06-14 07:46:01 +02:00
Gaetan Lepage
53ba9488da codeium: 1.8.51 -> 1.8.57 2024-06-06 07:43:05 +02:00
R. Ryantm
342abfc7e6 codeium: 1.8.42 -> 1.8.51 2024-05-31 19:35:57 +00:00
Gaetan Lepage
165fc39538 codeium: 1.8.32 -> 1.8.42 2024-05-20 20:15:48 +02:00
R. Ryantm
1288e458b5 codeium: 1.8.30 -> 1.8.32 2024-05-07 08:30:49 +00:00
R. Ryantm
8c0b9ca79f codeium: 1.8.27 -> 1.8.30 2024-04-30 09:00:32 +00:00
Gaetan Lepage
f8d3ea2062 codeium: 1.8.25 -> 1.8.27 2024-04-23 07:55:24 +02:00
R. Ryantm
4088f2f6d0 codeium: 1.8.22 -> 1.8.25 2024-04-13 04:06:18 +00:00
Gaetan Lepage
5c8f89b1a6 codeium: 1.8.16 -> 1.8.22 2024-04-06 11:01:06 +02:00
R. Ryantm
3612f058ee codeium: 1.8.13 -> 1.8.16 2024-03-24 08:34:28 +00:00
R. Ryantm
a92e97e7bb codeium: 1.8.5 -> 1.8.13 2024-03-17 05:28:48 +00:00
Gaetan Lepage
2a47255373 codeium: 1.8.0 -> 1.8.5 2024-03-06 23:43:49 +01:00
Gaetan Lepage
5c4585c55f codeium: 1.6.39 -> 1.8.0 2024-03-01 09:00:37 +01:00
R. Ryantm
3743c6b4d6 codeium: 1.6.38 -> 1.6.39 2024-02-22 08:31:46 +00:00
R. Ryantm
49301882ac codeium: 1.6.36 -> 1.6.38 2024-02-18 18:09:59 +00:00
R. Ryantm
e7760c0f89 codeium: 1.6.34 -> 1.6.36 2024-02-15 11:21:10 +00:00
R. Ryantm
eb9d064fc6 codeium: 1.6.30 -> 1.6.34 2024-02-12 00:02:09 +00:00
R. Ryantm
2a3271c6e9 codeium: 1.6.28 -> 1.6.30 2024-02-04 16:17:07 +00:00
Gaetan Lepage
3f570fbf07 codeium: 1.6.26 -> 1.6.28 2024-01-31 07:56:12 +01:00
Gaetan Lepage
4b72140d46 codeium: 1.6.23 -> 1.6.26 2024-01-24 07:37:24 +01:00
Gaetan Lepage
dcd05b9149 codeium: 1.6.22 -> 1.6.23 2024-01-17 23:42:20 +01:00
Gaetan Lepage
0f233e832e codeium: 1.6.20 -> 1.6.22 2024-01-13 22:08:30 +01:00