87 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
zimbatm df1b67fdfd purescript.tests.minimal-module: use lib.sources.sourceByGlobs
Filter src to the .purs and .js files actually compiled, dropping
default.nix from the closure.
2026-05-26 21:53:50 +12:00
Hythera 7db17bcc1f maintainers: remove mbbx6spp 2026-05-17 12:26:39 +02: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
sternenseemann 401566541b spago-legacy: 0.21.0 -> 0.21.1, rename from spago
See https://github.com/purescript/spago-legacy/pull/3.

Co-authored-by: Peter Becich <peterbecich@gmail.com>
2025-09-28 18:05:53 +02:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02: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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.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
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
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Artturin 09fcff386c purescript: add aarch64-linux support
purescript: fix cross
2024-06-23 20:17:29 +03:00
Artturin d035998c93 purescript: rework src selection 2024-06-23 20:17:29 +03:00
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02: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 3efdb8d6fa purescript: 0.15.14 -> 0.15.15 2024-02-10 22:14:08 +00:00
R. Ryantm ea1b75479a purescript: 0.15.13 -> 0.15.14 2024-01-08 10:49:55 +00:00
R. Ryantm 8fd9119a3d purescript: 0.15.12 -> 0.15.13 2023-11-27 12:31:10 +00:00
R. Ryantm d0fcc8b9d0 purescript: 0.15.11 -> 0.15.12 2023-10-13 03:27:57 +00:00
R. Ryantm d2ee5d9dde purescript: 0.15.10 -> 0.15.11 2023-10-04 08:08:20 +00:00
Pol Dellaiera 99ee645574 Merge pull request #244805 from r-ryantm/auto-update/purescript
purescript: 0.15.9 -> 0.15.10
2023-07-26 13:29:01 +02:00
R. Ryantm 06fe60288c purescript: 0.15.9 -> 0.15.10 2023-07-24 16:19:58 +02:00
Felix Bühler 0a2745684e Merge pull request #239624 from Stunkymonkey/use-optionalString-then
treewide: use optionalString instead of 'then ""'
2023-07-22 13:02:47 +02:00
Profpatsch c97ad2763a rm Profpatsch from stuff without interest/capacity of maintaining
For tree-sitter I’m still interested, but don’t want to be first in
the list :)
2023-07-07 12:53:42 +02:00
Felix Buehler f3719756b5 treewide: use optionalString instead of 'then ""' 2023-06-24 20:19:19 +02:00
Tom Cumming 5907564df0 purescript: Add aarch64-darwin target 2023-05-17 17:23:52 +01:00
R. Ryantm 86236aacd5 purescript: 0.15.8 -> 0.15.9 2023-05-03 08:52:50 +00:00
R. Ryantm 805e23adf2 purescript: 0.15.7 -> 0.15.8 2023-03-10 17:14:31 +00:00
R. Ryantm 7db82980f1 purescript: 0.15.6 -> 0.15.7 2022-12-12 20:30:56 +00:00
R. Ryantm 3d28d92294 purescript: 0.15.5 -> 0.15.6 2022-10-18 19:10:51 +00:00
R. Ryantm 48077f9d9b purescript: 0.15.4 -> 0.15.5 2022-10-10 22:48:34 +00:00
Dennis Gosnell e436d5c9d8 Merge pull request #181915 from r-ryantm/auto-update/purescript
purescript: 0.15.2 -> 0.15.4
2022-07-18 17:15:06 +09:00
R. Ryantm 622952b45e purescript: 0.15.2 -> 0.15.4 2022-07-18 07:33:09 +00:00
Adam Joseph 16ad8ea53c s/sourceTypes/source-types/ 2022-05-30 11:07:31 -07:00
Adam Joseph 360b31707a purescript: mark meta.sourceProvenance 2022-05-30 10:45:15 -07:00
Dennis Gosnell 4b4115df70 purescript: update script only considers full releases
Make sure the purescript update script only considers full releases.
Before this change, the purescript update script would consider
prereleases as valid releases.  This caused the r-ryantm bot to
create PRs trying to update the purescript derivation in Nixpkgs
to prerelease versions.

See https://github.com/NixOS/nixpkgs/pull/174485#issuecomment-1137291664
and
https://discourse.purescript.org/t/purescript-continuous-prereleases/3006/2?u=cdepillabout
for slightly more information.
2022-05-27 13:40:36 +09:00
Dennis Gosnell 04ce990169 purescript: 0.15.0 -> 0.15.2 2022-05-18 20:58:18 +09:00
Dennis Gosnell c3a7edf7d2 purescript: drop ncurses dep
`purs` no longer depends on ncurses/libtinfo since 0.14.8:
https://github.com/purescript/purescript/releases/tag/v0.14.8
2022-05-04 15:41:04 +09:00
Dennis Gosnell 2804a50193 purescript: 0.14.7 -> 0.15.0 2022-04-30 17:43:58 +09:00
R. Ryantm 64ba26f745 purescript: 0.14.6 -> 0.14.7 2022-02-27 13:34:27 +00:00
R. Ryantm dd9760d9f7 purescript: 0.14.5 -> 0.14.6 2022-02-26 14:55:50 +00:00
(cdep)illabout 4b63a6dacc purescript: 0.14.4 -> 0.14.5 2021-10-23 12:03:50 +09:00
Dennis Gosnell 688eef3c04 purescript: add missing dependency to update script
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-08-27 10:45:20 +09:00
(cdep)illabout aff01371c1 purescript: add updateScript for automatic updates 2021-08-26 10:20:27 +09:00
(cdep)illabout 905a62e6c3 purescript: 0.14.3 -> 0.14.4 2021-08-26 10:16:28 +09:00
(cdep)illabout 655dc5b67e purescript: 0.14.2 -> 0.14.3 2021-07-07 13:10:50 +09:00
(cdep)illabout 8f2ea9a961 purescript: add changelog 2021-06-06 09:48:12 +09:00
(cdep)illabout d32c247083 purescript: 0.14.0 -> 0.14.2 2021-06-06 09:44:48 +09:00
Daniel Nagy 9c14e1f92a purescript: add meta.mainProgram 2021-06-02 15:53:11 +02:00
(cdep)illabout 4fb330d334 purescript: 0.13.8 -> 0.14.0 2021-02-26 14:55:45 +09:00
Ben Siraphob acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00