Commit Graph

52 Commits

Author SHA1 Message Date
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
teutat3s
05151e55ad electron_40-bin: mark as insecure
electron 40 is EOL
2026-07-14 16:52:52 +02:00
teutat3s
4e2f3b4904 electron_39-bin: mark as insecure 2026-05-22 22:33:47 +02:00
teutat3s
c4474a4d3b electron_bin: enable strictDeps, __structuredAttrs 2026-05-17 18:44:22 +02:00
Yureka
c9184bc244 electron_38-bin: mark as insecure 2026-03-20 11:33:49 +01:00
Yureka
307ac883a4 electron_37-bin: mark as insecure 2026-02-02 16:33:20 +01:00
quantenzitrone
7d8132a92c treewide: remove references to the xorg namespace in pkgs (automated)
this creates some eval errors that will be fixed in the next commit

done with the following script:

```fish
\#!/usr/bin/env fish

set packagesjson (nix eval --impure --json --expr '
let
  lib = import ./lib;
in
import pkgs/servers/x11/xorg/default.nix (lib.mapAttrs (
  name: _:
  if name == "lib" then
    lib
  else if name == "config" then
    { allowAliases = false; }
  else
    name
) (__functionArgs (import pkgs/servers/x11/xorg/default.nix))) { }
' | jq)

set one (grep '^    [A-Za-z0-9_-]*$' pkgs/servers/x11/xorg/default.nix | string trim | string replace -r '$' Z | sort | string sub -e -1)
set two (grep '^  [A-Za-z0-9_-]* = [A-Za-z0-9_-]*;$' pkgs/servers/x11/xorg/default.nix | cut -d= -f1 | string trim | string replace -r '$' Z | sort | string sub -e -1)

for arg in $one $two
    set oname $arg
    set nname (echo $packagesjson | jq -r .$oname)

    if test $nname = null
        echo (set_color red)warn:(set_color normal) unknown package xorg.$oname >&2
        continue
    end

    echo $oname "->" $nname

    # replace basic xorg.$name references
    for file in (rg -F "xorg.$oname" --files-with-matches pkgs)
        # special cases
        sd -F "$oname = xorg.$oname;" "$nname = $nname;" $file

        # replace
        sd -F "xorg.$oname" "$nname" $file

        # fixup function arguments

        # prevent duplicate function args
        if grep -E " ($oname|$nname),\$" $file >/dev/null
            continue
        end

        if grep 'xorg\..' $file >/dev/null # case1: there is more so we can't just remove the function arg

            if grep ' xorg,$' $file >/dev/null
                sd ' xorg,$' " xorg,
                $nname," $file

            else if grep ' xorg ? .*,$' $file >/dev/null
                sd 'xorg( ? .*),$' "xorg\$1,
                $nname," $file

            else
                sd -F 'xorg,' "$nname,
                xorg," $file
            end

        else # case there is no more xorg..* so we can just replace the function arg
            sd 'xorg(| ? .*),.*$' "$nname," $file
        end
    end
end

nix fmt
```
2026-01-25 22:28:09 +01:00
Ihar Hrachyshka
a269d900c4 treewide: remove remaining meta = with lib; 2025-12-14 15:16:00 -05:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Yureka
8ecc467b2a electron_36-bin: mark as insecure 2025-11-04 15:36:01 +01:00
teutat3s
bbfed5a734 team-list: add electron team 2025-10-16 18:43:39 +02:00
teutat3s
b67464cfb6 electron_35-bin: mark as insecure because it's EOL
dae5dad167/docs/tutorial/electron-timelines.md
2025-09-12 18:21:56 +02:00
TomaSajt
4d9871f2b2 electron_34-bin: mark as insecure because it's EOL
e4c37e4b38/docs/tutorial/electron-timelines.md
2025-06-25 16:51:58 +02:00
teutat3s
37c90f2fd2 electron_33-bin: mark as insecure because it's EOL
3041fd66cd/docs/tutorial/electron-timelines.md
2025-04-28 16:31:04 +02:00
Sandro Jäckel
6da0232e3c electron: simplify usage of headers 2025-04-10 21:41:09 +02:00
Toma
d23ea9bacd Revert "electron{,-bin}: add direct support for the NIXOS_OZONE_WL env var"
This reverts commit 5c4803c56e.
2025-03-14 22:10:44 +01:00
TomaSajt
5c4803c56e electron{,-bin}: add direct support for the NIXOS_OZONE_WL env var 2025-03-14 20:20:45 +01:00
teutat3s
1ab2b7d227 electron_34-bin: remove fix for read out of range on aarch64 16k pages systems
Cleanup, because electron 34.3.0 and 33.4.1 already contain the fix
upstream and have reached nixpkgs master.

https://github.com/electron/electron/releases/tag/v34.3.0
https://github.com/electron/electron/pull/45571
https://github.com/electron/electron/releases/tag/v33.4.1
https://github.com/electron/electron/pull/45602
2025-03-12 11:28:32 +01:00
TomaSajt
6fa5cb30e5 electron{,-bin}: add tomasajt as a maintainer 2025-03-07 17:15:38 +01:00
emilylange
871fbdee7b electron_32-bin: mark as insecure because it's EOL
d6f4982522/docs/tutorial/electron-timelines.md
2025-03-06 13:18:33 +01:00
TomaSajt
8cfff8cba9 electron-bin: don't wrap inside libexec
This change helps bring electron-bin to a similar structure as the
source builds of electron.
The primary motivation of this change was to ensure that the `electron`
binary inside `libexec/electron` is an actual binary and not a wrapper.
This way `electron-fuses` will not complain about not being able to
find the necessary sentinel strings inside the binary.
2025-03-04 20:25:04 +01:00
TomaSajt
86116722fd Revert "electron-bin: don't wrap inside libexec"
This reverts commit aa3ba4cb23.
2025-03-03 16:30:42 +05:30
TomaSajt
807a57ff88 Revert "electron-bin: remove leftover logic"
This reverts commit 64f90c5682.
2025-03-03 16:30:42 +05:30
TomaSajt
64f90c5682 electron-bin: remove leftover logic 2025-03-01 13:19:39 +01:00
TomaSajt
aa3ba4cb23 electron-bin: don't wrap inside libexec 2025-02-24 21:54:59 +01:00
emilylange
f17378b506 electron-bin: copy over fixes from electron-source
Ref: 461a23c756
Ref: 0443439665
Ref: 6a0cf40cf4
Ref: 280c094f62
Ref: 92a452733d
Ref: 8e7a098243
Ref: 99515b5c50
2025-02-20 18:03:21 +01:00
emilylange
3670ca87be electron-bin: remove no longer needed version conditionals 2025-02-20 17:08:05 +01:00
emilylange
69bab478d5 electron_34-bin: fix read out of range on aarch64 16k pages systems
Previously in chromium (source build): 608b73b8be

This works around a regression in chromium M131-134 that causes electron
v33 and v34 on aarch64-linux with 16k pagesize (e.g. Asahi Linux) to
crash.

This commit applies this workaround only to electron v34, as v33.4.1,
for which we have a soon to be merged PR open, already carries the
workaround upstream.
2025-02-16 06:49:32 +01:00
emilylange
c2699af8e6 electron_31-bin: mark as insecure because it's EOL
2745771a22/docs/tutorial/electron-timelines.md
2025-01-15 12:52:31 +01:00
Silvan Mosberger
84d4f874c2 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 78e9caf153
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00
K900
d209d800b7 treewide: mesa -> libgbm (where appropriate)
This will likely break things, but anything broken should be easily noticeable.
2024-12-05 12:37:39 +03:00
Reno Dakota
52bf1163fa treewide: use getLib when accessing clang / libclang / stdenv.cc.cc
In preparation to eliminate the lib output for the unwrapped clang, use
`lib.getLib` to access the `lib` output.
2024-11-07 10:27:41 +00:00
emilylange
14e79e787e electron_30-bin: mark as insecure because it's EOL 2024-10-22 21:06:55 +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
TomaSajt
6ca8d9b06f electron{,-bin}: add passthru.dist attribute 2024-08-27 21:37:12 +02:00
emilylange
39f4f0877b electron_29-bin: mark as insecure because it's EOL 2024-08-23 16:59:11 +02:00
teutat3s
d5ccd64fd5 electron-bin: update maintainers
Last contributions were in 2018 and 2015. Update list to de-facto
maintainers.
2024-08-20 09:37:54 +02:00
Alyssa Ross
7892638379 electron*: mark older versions as EOL
Link: https://www.electronjs.org/docs/latest/tutorial/electron-timelines#timeline
Link: https://github.com/NixOS/nixpkgs/pull/318857#issuecomment-2161462390
2024-06-12 09:09:54 +02:00
Jan Tojnar
eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00
Kiskae
230e558635 electron-*-bin: fix vulkan-loader 2024-04-04 22:50:10 +02:00
Yureka
c076cc2157 electron_26-bin: mark as insecure 2024-03-14 12:29:00 +01:00
Kiskae
1f09eb4d9e electron_*-bin: fix libGL 2024-02-02 20:44:54 +01:00
Pol Dellaiera
7501d682b8 electron: add missing meta.mainProgram 2023-12-20 12:10:18 +03:00
Pavol Rusnak
ca8e89e825 electron-bin: remove prusnak from maintainers 2023-12-10 23:59:13 +01:00
Yureka
9652f98da0 electron_25: eol 2023-12-05 19:38:28 +01:00
Yaya
3e8424248f electron-{22,24}-bin: Mark EOL
These are now EOL since 2023-10-10

https://endoflife.date/electron

Co-authored-by: Yureka <yuka@yuka.dev>
2023-10-21 16:40:45 +02:00
nixdrin
503e176e3d electron-bin: add pciutils to electronLibPath
libpci.so is needed at runtime to detect GPU vendor/device IDs properly,
so that Chromium's blocklists that workaround various GPU driver bugs
can be applied correctly.
2023-10-20 00:03:30 +02:00
Sandro Jäckel
5d5e71a3ac electron-bin: remove atomEnv 2023-10-03 16:37:26 +02:00
Yureka
5d7c754943 electron-bin: place electron files in libexec/ 2023-09-10 14:05:55 +02:00
Yureka
ee99cb5dc6 electron_*: updates 2023-08-24 14:25:23 +02:00