Commit Graph

27 Commits

Author SHA1 Message Date
whispers
759525454c ldc: 1.41.0 -> 1.42.0
release notes: https://github.com/ldc-developers/ldc/releases/tag/v1.42.0
2026-07-28 10:47:34 -04: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
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
mivorasu
7091e75f78 treewide: replace rev with tag in fetchFromGitHub 2025-08-04 10:46:30 +00:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Sizhe Zhao
e994caeea6 ldc: 1.40.1 -> 1.41.0 2025-06-08 14:14:06 +08:00
Sizhe Zhao
fd2938fbe7 ldc-bootstrap: 1.28.1, 1.30.0 -> 1.41.0 2025-06-08 14:10:42 +08:00
Mathew Polzin
b098c89e70 ldc: Fix compiler and output crashing on macOS Sequoia 15.4 (#404245) 2025-05-06 10:48:31 -05:00
Rhys-T
8950c05675 ldc: Fix compiler and output crashing on macOS Sequoia 15.4
Currently, programs built with LDC get a segfault on macOS 15.4, before
they've even reached `main`. (See ldc-developers/ldc#4899.) Upstream has
merged the fix, but it hasn't made it into a release yet. This commit
fixes the problem by:
- Downgrading the bootstrap compiler to 1.28.1, so that the final
  compiler itself can run correctly, and
- Backporting the `druntime` [fix][] into the final compiler, so that
  its _output_ can run correctly.

Resolves #398443, at least for `ldc`. `dmd` uses `druntime` as well,
and thus would have the same issue (dlang/dmd#21126), but it's currently
`broken` on Darwin for unrelated reasons, so I can't test any fix there.

[fix]: 60079c3b59
2025-05-04 19:52:24 -04:00
Ihar Hrachyshka
dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00
Jeremy Baxter
ddd29f9d9f ldc: remove references to ldcBootstrap 2025-03-27 21:11:55 +13:00
Jeremy Baxter
485bf1f47c ldc: order function attributes 2025-03-27 19:49:46 +13:00
R. Ryantm
1671c4d373 ldc: 1.39.0 -> 1.40.1 2025-03-22 21:25:28 +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
Sandro
c506cf7275 Merge pull request #324690 from jtbx-patches/ldc-bootstrap-passthru 2024-07-27 00:06:03 +02:00
Sigmanificient
61fe0c0416 pkgs/by-name: remove unused arguments 2024-07-26 10:11:07 +02:00
Jeremy Baxter
a488e04020 ldc: bump to LLVM 18 2024-07-22 07:47:11 +12:00
Jeremy Baxter
9217791c26 ldc: expose ldcBootstrap in passthru 2024-07-22 07:47:11 +12:00
Peder Bergebakken Sundt
beab3b862a Merge pull request #324400 from CyberShadow/ldc-include-output
ldc: split includes to separate output
2024-07-21 21:02:32 +02:00
Vladimir Panteleev
2ac637b098 ldc: add disallowedReferences test 2024-07-21 04:59:28 +00:00
R. Ryantm
2b05112718 ldc: 1.38.0 -> 1.39.0 2024-07-04 15:49:16 +00:00
Vladimir Panteleev
a02f964d4c ldc: split includes to separate output 2024-07-04 11:28:00 +00:00
Alexis Hildebrandt
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
Jeremy Baxter
b8eef4c70d ldc: 1.36.0 -> 1.38.0 2024-06-07 09:49:27 +12:00
Jeremy Baxter
ef4d490655 ldc: add meta.changelog 2024-06-07 09:49:21 +12:00
Jeremy Baxter
44b69c0ad2 ldc: modernize 2024-06-06 15:25:21 +12:00
Jeremy Baxter
ad4a42b2ce ldc: migrate to pkgs/by-name 2024-05-28 11:22:27 +12:00