Commit Graph

23 Commits

Author SHA1 Message Date
K900
45ae10c84d Merge remote-tracking branch 'origin/master' into staging-next 2026-07-15 10:52:37 +03:00
sempiternal-aurora
ab01f7e3af gnat-bootstrap{,15}: 15.2.0-1 -> 15.3.0-1 2026-07-15 16:29:38 +12: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
nixpkgs-ci[bot]
8ab1ccd1c1 Merge master into staging-next 2026-07-08 12:34:48 +00:00
sempiternal-aurora
05aafd47a5 gnat-bootstrap: add sempiternal-aurora as maintainer 2026-07-07 01:29:38 +10:00
sempiternal-aurora
57b3c44a08 gnat-bootstrap16: init at 16.1.0-1 2026-07-01 22:57:42 +10:00
sempiternal-aurora
ff8210b83c gnat-bootstrap15: init at 15.2.0-1 2026-07-01 12:28:00 +10:00
zinzilulo
481208bdff cc-wrapper, gcc, gnat, gnat-bootstrap: fix GCC 13 and GNAT 13/14/15 builds on darwin 2026-05-27 18:35:39 +01:00
Michael Daniels
b871a3e45b gnat{,-bootstrap}14: fix gnat14 build on aarch64-linux 2026-02-22 13:45:15 -05: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
Emily
10ce2b4791 {gcc11,gfortran11,gdc11,gnat11,gnat-bootstrap11}: drop
EOL since 2024; no longer used in the tree.
2025-08-22 23:01:59 +01:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Peter Collingbourne
bfefc8d2f3 gnat-bootstrap: remove ld binaries
After #400734 the path to the binutils wrapper is no longer passed via
-B and is instead passed via $PATH. This had the following consequences
for gnat-bootstrap:

- GCC appends $prefix/$triple/bin to collect2's $COMPILER_PATH, which
  is where gnat-bootstrap's bundled linker binary is installed. For
  normal gcc packages, this has no impact on linker selection because
  binutils and gcc are installed to separate prefixes.
- -B paths are also added to $COMPILER_PATH but they appear before
  $prefix/$triple/bin. This meant that gnat-bootstrap's collect2 would
  find the binutils wrapper before #400734.
- collect2 searches for the linker on $PATH but only after failing to
  find it on $COMPILER_PATH. Because #400734 caused the binutils wrapper
  path to be removed from $COMPILER_PATH while the bundled linker on
  $prefix/$triple/bin was still present, gnat-bootstrap started finding
  the bundled linker on $COMPILER_PATH after #400734.

The bundled ld binaries should not be used by builds utilizing
gnat-bootstrap because we need our binutils wrappers to be used so that
RPATH is set correctly. The ld binaries are unused as far as I'm aware,
so remove them from the package so that collect2 finds the binutils
wrapper on $PATH.
2025-06-23 23:05:25 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Weijia Wang
9adf6e599c gnat-bootstrap12: restrict platforms 2025-03-31 10:30:13 +02:00
Basti Widua
7a40edc3bc gnat14: add aarch64-linux support
alire-project/GNAT-FSF-builds bootstrap binaries only exist since
version 14 so I couldn't add support for versions <14
2025-03-28 16:49:11 +01:00
Weijia Wang
904e1f11da gnat{13,14}: bootstrap with gnat-bootstrap{13,14} 2025-02-26 09:10:02 +01:00
FliegendeWurst
3fcf45499b gnat-bootstrap: fix and enable strictDeps 2024-12-04 11:00:19 +01:00
Philip Taron
1c242513a0 gnat-bootstrap: gate elfutils on package availability rather than isLinux 2024-04-03 00:10:40 +02:00
Adam Joseph
451b68f344 Merge pull request #226179 from amjoseph-nixpkgs/pr/gnat-bootstrap/cleanup
gnat-bootstrap: parameterize better
2023-08-23 23:39:32 +00:00
Adam Joseph
1d1d5d2724 gnat-bootstrap: add meta.sourceProvenance
This package downloads binaries for bootstrapping; it should be marked as such.
2023-04-28 11:54:11 +00:00
Adam Joseph
605ccc8296 gnat-bootstrap: parameterize better
This commit makes `url` dependent on the gnat version, and allows
for `alireRevision` to be empty (in which case no hyphen is added
after ${gccVersion} in `version`).

This should cause no changes to eval on `gnat11` or `gnat12`.

This is submitted in order to reduce the size of #225191
2023-04-16 15:31:02 -07:00
Manuel Mendez
31d6802773 gnatboot: rename to gnat-bootstrap
Most other bootstrap compilers are named -bootstrap so lets follow that
pattern.
2023-04-15 18:52:14 -04:00