Commit Graph

111 Commits

Author SHA1 Message Date
R. Ryantm
77106cf50e sublime4-dev: 4205 -> 4206 2026-07-23 20:06:22 +00:00
Gutyina Gergő
29f88f2828 sublime4: remove CI workaround for meta.problems.removal 2026-06-27 00:19:14 +02:00
Gutyina Gergő
76f58eeb64 sublime4: drop openssl_1_1, mark currently stable sublime4 as broken
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2026-06-24 01:36:06 +02:00
Gutyina Gergő
f2bfc49905 sublime4: set meta.mainProgram 2026-06-24 01:36:06 +02:00
Jan Tojnar
595cb43b72 sublime4-dev: 4199 → 4205
- `/usr/bin/pkexec` no longer hardcoded (incomplete fix)
- Python 3.8 replaced with 3.14.4

Unfortunately, I was not able to use `python314` from Nixpkgs because
`plugin_host-3.14` kept crashing in `PyConfig_SetWideStringList`.

Even though abidiff looks fine and I do not see anything
in `include/python3.14/cpython/initconfig.h` that I would guess
to be relevant to changing the layout of `PyConfig` struct, if I am not
mistaken both appear to be compiled without Py_GIL_DISABLED, Py_STATS
and Py_DEBUG. I even tried disabling LTO and bumping nixpkgs Python to 3.14.4.

So I kept the vendored variant, only unvendoring its OpenSSL 3 dependency.
Using OpenSSL 3.5 since it is LTS.
2026-05-09 10:26:32 +02:00
Aliaksandr
3f26693a02 various: use finalAttrs instead of rec 2026-02-18 04:21:56 +02: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
Justin !
a7b37ea693 treewide: fix rec-set-dynamic-attrs
Lix will soon warn, and in the future, error on `rec-set-dynamic-attrs`.
This commit fix where attrs are dynamically set in a recursive function
currently present in nixpkgs.
2026-01-13 20:04:46 -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
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther
90e7159c55 treewide: remove unused rec
Auto-fix by nixf-diagnose.
2025-10-05 10:49:12 +02:00
NAHO
c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Ilia
61efce5d05 sublime4-dev: 4196 -> 4199 2025-05-24 14:56:10 +02:00
Ilia
ccb6f5e881 sublime4: 4192 -> 4200 2025-05-24 14:56:10 +02:00
Jan Tojnar
81f57c1196 sublime4-dev: 4191 → 4196
The Python 3.3 plug-in host still depends on openssl 1.1 but a `disable_plugin_host_3.3` settings key was introduced, allowing user to force the extension packages to use Python 3.8 host, which does not depend on insecure variant.
2025-03-14 18:05:25 +01:00
nayeko
513a2746b2 sublime4-dev: 4188 -> 4191 2025-02-01 21:17:21 +00:00
nayeko
ac5cf7b90f sublime4: 4189 -> 4192 2025-02-01 21:16:37 +00:00
aucub
b12d5b79cb sublime4-dev: 4187 -> 4188 2024-12-21 12:42:54 +00:00
aucub
198f792808 sublime4: 4186 -> 4189 2024-12-21 12:42:32 +00:00
aucub
7ee5eee1e0 sublime4-dev: 4178 -> 4187 2024-12-18 15:56:48 +00:00
aucub
d01921a010 sublime4: 4180 -> 4186 2024-12-18 20:11:40 +08: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
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
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
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
Ali Rizvi
75594987c9 sublime4-dev: 4175 -> 4178 2024-09-15 05:22:18 -04:00
Ali Rizvi
8d009a4cad sublime4: 4169 -> 4180 2024-09-15 05:22:15 -04:00
Peder Bergebakken Sundt
dfbc165dc7 treewide: remove nested let-in 2024-08-09 03:58:35 +02:00
Jan Tojnar
0421c816ba treewide: Simplify use of update-source-version
- `--ignore-same-version` allows us to not call it twice.
- with that, we can also omit version, to allow us updating e.g. `cargoDeps` hash
2024-06-09 20:33:23 +02:00
Jan Tojnar
e4eb54eb19 sublime4-dev: 4173 → 4175 2024-05-31 14:02:10 +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
Jan Tojnar
67aa9259ec sublime4-dev: 4168 → 4173 2024-04-05 09:23:05 +02:00
Jan Tojnar
eb7298e58b sublime4,sublime-merge: Use --replace-fail
Also split the substitute call for legibility.
2024-04-05 09:23:05 +02:00
Jan Tojnar
86c02994a0 sublime4: remove bash replacement
Sublime 4050 already used `/usr/bin/env bash` in `exec.py` without any issue.
2024-04-05 09:23:05 +02:00
Jan Tojnar
e2d93cb47e sublime4,sublime-merge: format with nixpkgs-fmt 2024-04-05 09:23:05 +02:00
Chen
a95574483d sublime4: 4152 → 4169 2023-11-26 23:57:56 +01:00
Chen
8200cf15de sublime4-dev: 4155 → 4168 2023-11-26 23:57:56 +01:00
PedroHLC ☭
c45505950a sublime4-dev: 4150 -> 4155 2023-09-14 08:36:10 -03:00
PedroHLC ☭
3993e3b2c8 sublime4: 4143 -> 4152 2023-09-11 10:29:47 -03:00
Sebastian Sellmeier
895dbf02a3 sublime4-dev: 4149 -> 4150 2023-06-15 22:49:37 +02:00
Jan Tojnar
a2f49342d8 treewide: Reduce jtojnar maintainership
Notably fwupd, pipewire and flatpak.
I want to focus on GNOME and other packages I still actually use.
Pipewire is still important but I have not touched the packaging in a while.
2023-05-20 16:40:17 +02:00
R. Ryantm
2c55bef565 sublime4-dev: 4147 → 4149 2023-05-04 19:21:49 +02:00
Jan Tojnar
faa2508ddd sublime4-dev: 4141 → 4147 2023-01-15 21:46:08 +01:00
PedroHLC ☭
98fb735493 sublime4: 4142 -> 4143 2022-11-14 11:50:00 -03:00
PedroHLC ☭
9ed3ef3053 sublime4: 4126 -> 4142 2022-11-10 08:13:51 -03:00
Jan Tojnar
4e96b3488e sublime4-dev: 4137 → 4141 2022-11-09 19:09:43 +01:00
Jan Tojnar
9e4c57c089 sublime4-dev: 4136 → 4137
Fixes Zombie processes
2022-09-29 04:30:17 +02:00
Jan Tojnar
fe6ae94c85 sublime4-dev: 4134 → 4136 2022-09-16 18:40:33 +02:00
Jan Tojnar
98315b4307 sublime4: Avoid absolute exec paths in desktop file
When user installed a new version of ST (or just a different derivation),
GNOME Shell would lose the association of the windows with the icon.
Since the package needs to be installed in order for the desktop file
to be available, having the path absolute is useless any way.
2022-09-16 18:36:01 +02:00