Commit Graph

26 Commits

Author SHA1 Message Date
R. Ryantm
10f9df5140 phpExtensions.relay: 0.30.0 -> 0.40.0 2026-08-05 06:25:09 +00:00
Gabriel Ostrolucký
545b8a85ef phpExtensions.relay: discover Homebrew dylib paths on Darwin instead of hardcoding them
The install_name_tool remap list hardcoded exact Homebrew paths and
versions (e.g. hiredis 1.3.0, concurrencykit's opt path) that relay.so
happened to be linked against upstream. These went stale whenever
relay or one of its dependencies bumped versions or paths changed,
leaving relay.so silently referencing missing /opt/homebrew libraries
and failing to load at runtime on Darwin.

Discover the actual references via `otool -L` and remap each by
matching its basename to the corresponding Nix package, failing loudly
if an unrecognized library shows up instead of silently no-opping.
2026-07-29 14:26:46 +02: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
4a7fd66a71 phpExtensions.relay: 0.21.0 -> 0.30.0 2026-06-21 19:03:08 +00:00
Pol Dellaiera
2b5a0796e3 phpExtensions.relay Fix wrong dylib mapping in Darwin (#519155) 2026-06-11 09:36:46 +00:00
Gabriel Ostrolucký
a4112cd368 phpExtensions.relay: Fix wrong dylib mapping in Darwin 2026-05-11 23:29:37 +02:00
Hythera
8318bd7dbf hiredis: 1.2.0 -> 1.3.0
changelog: https://github.com/redis/hiredis/releases/tag/v1.3.0

diff: https://github.com/redis/hiredis/compare/v1.2.0...v1.3.0
2026-05-06 20:53:51 +02:00
R. Ryantm
3c7047ad4a phpExtensions.relay: 0.20.0 -> 0.21.0 2026-04-05 14:04:24 +00: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
R. Ryantm
acf6d7cb04 phpExtensions.relay: 0.12.1 -> 0.20.0 2025-11-28 09:09:53 +00:00
R. Ryantm
8635298c2e phpExtensions.relay: 0.12.0 -> 0.12.1 2025-10-17 09:50:11 +00:00
Jörg Thalheim
0d5e46be10 phpExtensions.relay: 0.11.1 -> 0.12.0 (#448281) 2025-10-04 20:37:29 +00: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
R. Ryantm
e04737ad9c phpExtensions.relay: 0.11.1 -> 0.12.0 2025-10-03 16:15:48 +00:00
R. Ryantm
a53b7b3461 phpExtensions.relay: 0.11.0 -> 0.11.1 2025-07-25 23:53:46 +00:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
R. Ryantm
eb553bbd91 phpExtensions.relay: 0.10.1 -> 0.11.0 2025-06-19 23:54:48 +00:00
R. Ryantm
1e132c67b2 phpExtensions.relay: 0.10.0 -> 0.10.1 2025-02-14 19:55:31 +00:00
Gabriel Ostrolucký
e9a9422e51 phpExtensions.relay: 0.7.0 -> 0.10.0 2025-01-30 23:11:44 +01: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
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
Pol Dellaiera
c759efa5e7 workflows/check-nix-format: enforce for php-packages 2024-05-04 23:04:36 +02:00
R. Ryantm
cdd6a14115 php81Extensions.relay: 0.6.8 -> 0.7.0 2024-01-20 05:00:13 +00:00
Gabriel Ostrolucký
90d83cc035 phpExtensions.relay: Fix dylib in Darwin 2023-12-12 22:17:20 +01:00
Gabriel Ostrolucký
3761771d87 phpExtensions.relay: 0.6.3 -> 0.6.8 2023-11-26 13:29:16 +01:00
Gabriel Ostrolucký
c554c35197 phpExtensions.relay: init at 0.6.3 2023-05-05 17:34:25 +02:00