Commit Graph

15 Commits

Author SHA1 Message Date
Alex James
5fe66fcffe haskell.compiler.ghc984Binary: workaround com.apple.provenance xattr
This is taken from #413450.
2026-07-24 01:04:45 -07: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
Rohit Singh
aad5152508 haskell.compiler.ghc984Binary: fix build on systems with older glibc
Patch shebangs in mk/ scripts to prevent them from using the system's
/bin/sh, which can load incompatible libraries via LD_LIBRARY_PATH.
This fixes builds on systems where the system glibc is older than what
nixpkgs dependencies require.
2026-02-12 04:39:56 -05:00
Stefan Frijters
a43b8f3285 haskell.compiler.ghc*Binary: fix build with structuredAttrs 2025-12-14 20:17:19 +01:00
Stefan Frijters
c17b54ecd7 ghc: set sourceProvenance for binary bootstrap packages 2025-11-19 15:07:46 +01:00
sternenseemann
347062bef5 haskell.compiler.ghc984Binary: drop unnecessary libnuma dep
ghc902Binary's rts.conf indeed prescribes linking against numa for
aarch64-linux, but this is not the case with the later bindists we have
been providing numa for.
2025-10-14 11:52:20 +02:00
Luna Nova
e7fbed853b treewide: remove usages of obsolete pie hardening flag 2025-10-09 10:13:03 -07:00
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther
90e7159c55 treewide: remove unused rec
Auto-fix by nixf-diagnose.
2025-10-05 10:49:12 +02:00
Emily
4f342a1bcc haskell.compiler.ghc{924,963,984}Binary: use broken for NCG check
Fix availability checks on platforms where this would be false.
2025-09-08 00:37:00 +01:00
Emily
1bda5b199d haskell.compiler.ghc{924,963,984}Binary: remove LLVM‐related dead code
These binary packages are available for a fixed set of platforms,
all of which support the native code generator. Therefore, the
`llvmPackages` argument was never used. We leave an assertion around,
just in case.
2025-09-07 19:07:35 +01:00
Emily
0d2321b1e4 ghc{865,8107,902,924,963,984}Binary: don’t depend on gcc on Darwin
At one point maybe these linked to libraries from GCC 6, but they
don’t seem to any more (checked 8.6.5 and 9.6.3).
2025-08-05 19:21:00 +01:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
sternenseemann
3c3fef04a2 haskell.compiler.ghc*Binary: detect -lnuma based on library list
This is more robust when new bindists are added to expressions since no
additional conditional needs to be updated.
2025-05-30 17:12:45 +02:00
Alyssa Ross
80af5772df haskell.packages.ghc984Binary: init
The 9.8 binaries introduce support for aarch64 musl.  They can also be
used to build ghcHEAD, which previously wasn't buildable with a
bindist, so use it there and use the source-built 9.8.4 on platforms
without a bindist for consistency.  It fails to build 9.10.x and
9.12.x though, so I've left those as they are.
2025-04-11 20:42:31 +02:00