Commit Graph

47 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
Rahul Chalamala
dd2ea746ce graphite-cli: fix darwin build
The 1.8.6 bump (#527044) broke the package on darwin in two independent
ways, unnoticed because the package is unfree and therefore never built
by Hydra or ofborg:

- postInstall generates shell completions by running $out/bin/gt, but
  gt tries to create ~/.config/graphite/aliases on startup and exits 1
  with no output when HOME is not writable (as in nix builds, where
  HOME=/homeless-shelter). installShellCompletion then fails the build
  because the generated completion files are zero-size. Give the build
  a throwaway writable HOME. The Linux build is not affected because
  completions are generated through the buildFHSEnv wrapper, where /
  is a writable tmpfs.

- dontFixup was only set on Linux, so on darwin fixupPhase ran strip -S
  on the binary. As the comment in this file already explains, the
  vercel/pkg virtual filesystem appended to the binary must not be
  modified; the stripped binary fails at runtime with "Pkg: Error
  reading from file." Skip fixup on all platforms. On Linux this is a
  no-op: the derivation is unchanged.

Assisted-by: Devin (Ultra)
Co-Authored-By: Rahul Chalamala <22563365+rchalamala@users.noreply.github.com>
2026-07-13 21:24:39 +00:00
Philip Munksgaard
0432f5e6f3 graphite-cli: 1.7.20 -> 1.8.6
Since 1.8, graphite has started relying on binary packages prebuilt per host
platform, kind of like obsidian. Therefore, to support newer versions of
graphite, I've altered the package definition to download those binary packages
directly (one for each platform). On Linux we need a FHS environment wrapper,
which makes the code a bit more complex.

I've taken the liberty of also adding a version check to the package.
2026-06-02 10:45:57 +02:00
R. Ryantm
96cebd87e9 graphite-cli: 1.7.18 -> 1.7.20 2026-02-24 02:51:15 +00:00
R. Ryantm
3c13ddeb91 graphite-cli: 1.7.16 -> 1.7.18 2026-02-09 11:54:09 +00:00
R. Ryantm
3bb03bfb8c graphite-cli: 1.7.2 -> 1.7.16 2026-01-26 09:54:44 +00:00
R. Ryantm
0389c50709 graphite-cli: 1.7.1 -> 1.7.2 2025-10-18 14:05:57 +00:00
R. Ryantm
feeb08732d graphite-cli: 1.7.0 -> 1.7.1 2025-10-12 11:20:04 +00:00
R. Ryantm
648ce67b12 graphite-cli: 1.6.8 -> 1.7.0 2025-09-25 04:46:20 +00:00
Peder Bergebakken Sundt
8bffdd4ccf treewide: gate command execution for installShellCompletion behind buildPlatform.canExecute hostPlatform
This treewide conditions execution of the built applications for the purpose of generating shell completions behind `stdenv.buildPlatform.canExecute stdenv.hostPlatform`, which helps cross. This is a common issue I spot during review, let's prevent copy-paste errors by fixing it treewide.

Candidates were located with:

```shell
rg 'installShellCompletion' -l -tnix | xargs grep -F 'stdenv.buildPlatform.canExecute stdenv.hostPlatform' -L
```

Then I migrated the obvious cases which would not require a rebuild, as a means of testing.
This diff was not scripted. Should be zero rebuilds.

<details>
<summary>
Alternatives
</summary>

Alternatively I could have use this pattern:

```nix
postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) (
let
    emulator = stdenv.hostPlatform.emulator buildPackages;
in
''
    installShellCompletion --cmd foobar \
    --bash <(${emulator} $out/bin/foobar completion bash) \
    --fish <(${emulator} $out/bin/foobar completion fish) \
    --zsh <(${emulator} $out/bin/foobar completion zsh)
''
);
```

but that would cause rebuilds and will also require testing.

---

An other alternative is to use the binary from the corresponding package in `buildPackages`.
This however would also cause rebuilds and will also require testing.

</details>
2025-09-12 14:08:39 +02:00
R. Ryantm
2ae44784c9 graphite-cli: 1.6.7 -> 1.6.8 2025-08-22 19:01:14 +00:00
Nate Smith
0a825214fe graphite-cli: 1.6.6 -> 1.6.7 2025-07-25 09:28:14 -04:00
R. Ryantm
1258e0b567 graphite-cli: 1.6.5 -> 1.6.6 2025-06-30 22:22:05 +00:00
R. Ryantm
c3cf306114 graphite-cli: 1.6.4 -> 1.6.5 2025-06-21 12:16:53 +00:00
R. Ryantm
8b4ca05608 graphite-cli: 1.6.2 -> 1.6.4 2025-06-12 05:20:48 +00:00
R. Ryantm
6d62661638 graphite-cli: 1.6.1 -> 1.6.2 2025-05-22 11:36:12 +00:00
Yohann Boniface
b5718c0ec6 graphite-cli: add joshheinrichs-shopify to maintainers (#395885) 2025-04-27 12:06:13 +02:00
Josh Heinrichs
73f05ba59c graphite-cli: add joshheinrichs-shopify to maintainers 2025-04-03 17:54:55 -06:00
R. Ryantm
a87167a64b graphite-cli: 1.5.3 -> 1.6.1 2025-03-28 09:37:29 +00:00
Diego Pontoriero
e4ec0ce083 graphite-cli: remove diegs from maintainers 2025-03-12 01:24:42 +05:30
R. Ryantm
b773203449 graphite-cli: 1.4.11 -> 1.5.3 2025-02-05 16:34:21 +00:00
R. Ryantm
73feb7813e graphite-cli: 1.4.8 -> 1.4.11 2024-12-21 20:44:50 +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
R. Ryantm
18b60a0ba2 graphite-cli: 1.4.6 -> 1.4.8 2024-11-18 00:32:35 +00:00
R. Ryantm
170d8657e1 graphite-cli: 1.4.5 -> 1.4.6 2024-10-06 04:35:55 +00:00
R. Ryantm
ddbc429f15 graphite-cli: 1.4.4 -> 1.4.5 2024-09-28 11:24:22 +00:00
R. Ryantm
1999135fae graphite-cli: 1.4.3 -> 1.4.4 2024-09-06 09:49:47 +00:00
R. Ryantm
f9b1c688e5 graphite-cli: 1.4.2 -> 1.4.3 2024-08-25 03:15:15 +00:00
danielgafni
eab75cbf0e graphite-cli: 1.4.1 -> 1.4.2
Regular update: https://graphite.dev/docs/cli-changelog#142-2024-07-30
2024-08-19 10:02:44 +02:00
R. Ryantm
fc662c6f93 graphite-cli: 1.3.10 -> 1.4.1 2024-08-01 20:19:24 +00:00
Weijia Wang
294295ef3d Merge pull request #325426 from r-ryantm/auto-update/graphite-cli
graphite-cli: 1.3.9 -> 1.3.10
2024-07-08 23:50:05 +02:00
R. Ryantm
730a77e08e graphite-cli: 1.3.9 -> 1.3.10 2024-07-08 05:21:09 +00:00
h7x4
7384b9abdc treewide: set meta.changelog 2024-07-07 15:20:06 +02:00
R. Ryantm
4125560427 graphite-cli: 1.3.8 -> 1.3.9 2024-06-25 09:25:23 +00:00
Pyrox
131e793c94 graphite-cli: 1.3.6 -> 1.3.8 2024-06-17 12:51:24 -04:00
R. Ryantm
51fd722152 graphite-cli: 1.3.5 -> 1.3.6 2024-06-03 10:33:22 +00:00
R. Ryantm
48b8a2f5f9 graphite-cli: 1.3.4 -> 1.3.5 2024-05-28 10:23:39 +00:00
R. Ryantm
73d253a035 graphite-cli: 1.3.3 -> 1.3.4 2024-05-03 22:01:33 +00:00
R. Ryantm
f4060e5539 graphite-cli: 1.2.8 -> 1.3.3 2024-04-21 16:50:14 +00:00
Diego Pontoriero
115de732c0 graphite-cli: 1.2.3 -> 1.2.8 2024-03-26 21:26:54 +11:00
R. Ryantm
68f43dfbb8 graphite-cli: 1.1.5 -> 1.2.3 2024-02-23 19:16:39 +00:00
Robert Schütz
e4dbabf854 Merge pull request #288697 from diegs/add-diegs-graphite-cli-maintainer
maintainers: add diegs to graphite-cli
2024-02-15 03:36:57 +00:00
Diego Pontoriero
022f67c44b graphite-cli: add diegs as a maintainer 2024-02-14 10:29:36 -08:00
R. Ryantm
876a9cd666 graphite-cli: 1.1.2 -> 1.1.5 2024-02-13 14:41:46 +00:00
Diego Pontoriero
a6224e70a8 graphite-cli: add fish completion 2024-02-06 17:30:32 -05:00
Robert Schütz
3520bc218a graphite-cli: 1.0.14 -> 1.1.2 2024-01-28 10:58:39 -08:00
Robert Schütz
da6d13cea0 graphite-cli: use buildNpmPackage 2024-01-28 10:58:35 -08:00