Commit Graph

25 Commits

Author SHA1 Message Date
Austin Horstman
8c280ec332 _1password-cli: 2.34.1 -> 2.38.1
Generated with the corrected update script.
2026-08-10 20:07:10 -05:00
Austin Horstman
b0879b5ee1 _1password-cli: restrict updater to stable releases
The release history can list beta releases before stable releases.
2026-08-10 20:07:10 -05: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
b4b78294e4 _1password-cli: 2.34.0 -> 2.34.1 2026-06-11 18:15:03 +00:00
Eman Resu
c4e70c2a59 various: remove nested lists in build inputs 2026-05-16 22:39:19 -04:00
R. Ryantm
12ae701bbf _1password-cli: 2.33.1 -> 2.34.0 2026-04-20 15:27:54 +00:00
R. Ryantm
eac3d9d368 _1password-cli: 2.33.0-beta.01 -> 2.33.1 2026-03-26 16:06:55 +00:00
Sav Tripodi
04950f9a79 _1password-cli: add maintainer savtrip 2026-03-24 11:46:04 +01:00
R. Ryantm
44d90fad32 _1password-cli: 2.32.0 -> 2.33.0-beta.01 2026-02-07 06:44:48 +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
Rafael Ieda
fba21b3d22 treewide: remove iedame 2025-11-10 10:24:56 -03:00
Rafael Ieda
31effc85fb _1password-cli: add maintainer iedame 2025-10-24 01:53:03 -03: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
Yohann Boniface
d31888f485 various: refactor package definitions (#443475) 2025-09-30 07:27:27 +00:00
Guy Chronister
ea21ca27d0 _1password-cli: inline mainProgram in install and checks
- Replace `${pname}` reference in error message with explicit
  `"1password-cli"` for clarity.
- Inline `op` instead of `${mainProgram}` in:
  - `installPhase` binary installation
  - shell completion installation
  - `versionCheckProgram`
- Ensures consistency, avoids unnecessary indirection, and
  makes the derivation easier to read and maintain.
2025-09-16 19:08:33 +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
df2eee1267 _1password-cli: 2.31.1 -> 2.32.0 2025-08-29 16:43:38 +00:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Guy Chronister
f2a2cfee8a treewide: refactor meta section 2025-06-21 13:12:59 +00:00
R. Ryantm
c19c7dc087 _1password-cli: 2.31.0 -> 2.31.1 2025-05-28 21:07:14 +00:00
Austin Horstman
1f705c53bd _1password-cli: 2.30.3 -> 2.31.0 2025-05-09 10:17:14 -05:00
Gaetan Lepage
bfe27cf81c treewide: use a string for versionCheckProgramArg where possible 2025-04-05 14:45:13 +02:00
Olivér Falvai
f2ac05ced6 1password-cli: define nativeBuildInputs properly
This is required when strictDeps = true
2025-02-07 19:08:54 +01:00
R. Ryantm
c167ff0416 _1password-cli: 2.30.0 -> 2.30.3 2024-11-08 01:25:41 +00:00
Austin Horstman
6cb661ed93 _1password-cli: rename from _1password
Upstream uses the 1password-cli in reference to the application, while
the actual desktop application is just 1password.
2024-10-27 14:18:57 -05:00