Commit Graph

73 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
Artémis
67c1f597b1 jpm: 1.1.0 -> 1.2.0 2026-03-15 11:57:24 +01:00
Thomas Gerbet
b22917fa05 janet: 1.40.1 -> 1.41.2
Fixes:
* CVE-2026-2240 / https://github.com/NixOS/nixpkgs/issues/488991
* CVE-2026-2241 / https://github.com/NixOS/nixpkgs/issues/488992
* CVE-2026-2242 / https://github.com/NixOS/nixpkgs/issues/488995

Changes:
https://github.com/janet-lang/janet/releases/tag/v1.41.2
https://github.com/janet-lang/janet/releases/tag/v1.41.1
2026-02-19 12:35:24 +01:00
Jared Baur
89bd81cc39 jpm: fix incorrect config paths by referencing janet store path (#414808) 2025-12-25 08:12:16 +00:00
Seongmin Lee
2bed4702a5 jpm: fix incorrect config paths by referencing janet store path
close #373858

Signed-off-by: Seongmin Lee <boltlessengineer@proton.me>
2025-12-25 16:59:23 +09:00
Jared Baur
a2d1a198f0 janet: fix cross-compilation 2025-12-22 02:14:44 -08: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
Ashish SHUKLA
ae21cbf3da janet: 1.39.1 -> 1.40.1
Changes: https://github.com/janet-lang/janet/releases/tag/v1.40.0
         https://github.com/janet-lang/janet/releases/tag/v1.40.1
2025-12-07 17:02:46 +00:00
Acid Bong
5b5c611d9d maintainers: drop andrewchambers 2025-11-22 20:32:23 +02:00
Guy Chronister
475a0e3a44 various: remove superflous usages of pname 2025-09-25 20:45:06 -05:00
R. Ryantm
4d62c06b51 janet: 1.38.0 -> 1.39.1 2025-09-08 09:10:08 +00:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
R. Ryantm
f33e02b27b janet: 1.37.1 -> 1.38.0 2025-03-25 02:15:35 +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
98ebb7e0b2 janet: 1.36.0 -> 1.37.1 2024-12-09 10:31:21 +01:00
OTABI Tomoya
ff7ebf514d janet: 1.35.2 -> 1.36.0 (#341936) 2024-09-25 12:02:20 +09: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
R. Ryantm
9ecb30a533 janet: 1.35.2 -> 1.36.0 2024-09-15 00:40:41 +00:00
R. Ryantm
6fb77c9dcc janet: 1.34.0 -> 1.35.2 2024-06-24 12:41:17 -07:00
R. Ryantm
5c4f18afbe janet: 1.33.0 -> 1.34.0 2024-04-20 01:09:37 +00:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
R. Ryantm
6218f5262d janet: 1.32.1 -> 1.33.0 2024-01-19 16:41:34 +00:00
Christina Sørensen
028081ad5b janet: 1.31 -> 1.32.1 (#261147)
Co-authored-by: lucasew <lucas59356@gmail.com>
Co-authored-by: Artturi <Artturin@artturin.com>
2023-10-20 09:56:50 +03:00
R. Ryantm
85050921e9 janet: 1.30.0 -> 1.31.0 2023-09-23 21:59:56 +02:00
Aaron Jheng
e2fd2417f6 janet: 1.29.1 -> 1.30.0 2023-08-17 15:23:00 +08:00
R. Ryantm
7127bb909f janet: 1.28.0 -> 1.29.1 2023-06-23 05:57:59 +00:00
R. Ryantm
1da4ea5ac2 janet: 1.27.0 -> 1.28.0 2023-05-20 13:38:09 +00:00
R. Ryantm
8038012255 janet: 1.26.0 -> 1.27.0 2023-03-07 12:07:52 +00:00
R. Ryantm
aa478e283b janet: 1.25.1 -> 1.26.0 2023-01-11 09:04:53 +08:00
R. Ryantm
4078ed7536 janet: 1.24.1 -> 1.25.1 2022-11-08 10:59:15 +08:00
Stanisław Pitucha
705a842197 janet: build fixed on darwin 2022-09-18 10:35:39 +10:00
R. Ryantm
44b317c1b5 janet: 1.24.0 -> 1.24.1 2022-08-28 19:15:37 +00:00
R. Ryantm
802ea45699 janet: 1.23.0 -> 1.24.0 2022-08-18 09:39:41 +08:00
Payas Relekar
d4fee29542 jpm: 0.0.2 -> 1.1.0 2022-07-04 16:22:29 +05:30
Payas Relekar
5da31db744 janet: 1.22.0 -> 1.23.0 2022-07-04 16:22:29 +05:30
Thomas Gerbet
e366bbf9b6 janet: 1.21.2 -> 1.22.0
Fixes CVE-2022-30763

https://github.com/janet-lang/janet/releases/tag/v1.22.0
2022-06-05 17:35:29 +02:00
R. Ryantm
4561be3064 janet: 1.21.1 -> 1.21.2 2022-04-05 08:57:08 +08:00
R. Ryantm
ebeae1436f janet: 1.21.0 -> 1.21.1 2022-03-30 14:19:07 +08:00
R. Ryantm
1dfd0c261d janet: 1.20.0 -> 1.21.0 2022-03-27 21:18:20 +08:00
Peter Hoeg
7434084278 jpm: init at 0.0.2 2022-02-11 15:43:49 +08:00
Andrew Chambers
58f134bc37 janet: 1.16.1 -> 1.20.0
Co-authored-by: Florian Beeres <yuuki@protonmail.com>
2022-02-11 15:43:49 +08:00
Peter Hoeg
11b1684c8e janet: the nix sandbox doesn't have /usr/bin/env 2021-07-05 19:24:08 +08:00
R. RyanTM
9854c5b979 janet: 1.16.0 -> 1.16.1 2021-06-16 13:08:46 -07:00
R. RyanTM
2cc146464c janet: 1.15.5 -> 1.16.0 2021-05-31 06:20:10 +00:00
R. RyanTM
dacb5ba294 janet: 1.15.4 -> 1.15.5 2021-04-27 23:38:41 -04:00
R. RyanTM
7f11c064c4 janet: 1.15.3 -> 1.15.4 2021-03-17 13:39:32 +00:00
R. RyanTM
07a9dcf3e2 janet: 1.15.2 -> 1.15.3 2021-03-03 00:00:33 +00:00
R. RyanTM
55f69b335f janet: 1.15.0 -> 1.15.2 2021-02-16 07:11:29 +00:00