38 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
R. Ryantm d9c1101d41 smlnj: 110.99.8 -> 110.99.9 2025-11-07 03:21:16 +00:00
Yohann BonifaceandGitHub bb2a8bf6bf smlnj: 110.99.7.1 -> 110.99.8 (#403495) 2025-05-17 02:21:44 +02:00
R. Ryantm 059b98fad6 smlnj: 110.99.7.1 -> 110.99.8 2025-05-01 23:56:36 +00:00
Emily afcf1c942e smlnj: remove references to deprecated darwin.Libsystem stub
That code path is only used for 32‐bit Darwin.
2025-04-21 01:50:00 +01:00
ssossandAustin Seipp 727d7b2209 smlnj: 110.99.6.1 -> 110.99.7.1 2025-01-24 20:09:41 -06:00
ssossandAustin Seipp 89b67dc030 smlnj: added updater script 2025-01-24 20:09:41 -06: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
Masum RezaandGitHub e13831335f treewide: stdenv.is -> stdenv.hostPlatform.is (#356363)
* treewide: stdenv.is -> stdenv.hostPlatform.is

* treewide: nixfmt due to ci error
2024-11-17 16:11:54 +05:30
ssossandAustin Seipp 30c9efeef0 smlnj: 110.95 -> 110.99.6.1 2024-10-28 21:50:45 -05:00
ssoss 0be3a04ac3 smlnj: add skyesoss as maintainer 2024-10-27 15:54:18 -05: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
Rick van SchijndelandRick van Schijndel 9833d56c24 treewide: mark packages broken that never built on PLATFORM
Done with the help of https://github.com/Mindavi/nixpkgs-mark-broken
Tool is still WIP but this is one of the first results.

I manually audited the results and removed some results that were not valid.

Note that some of these packages maybe should have more constrained platforms set
instead of broken set, but I think not being perfectly correct is better than
just keep trying to build all these things and never succeeding.

Some observations:

- Some darwin builds require XCode tools
- aarch64-linux builds sometimes suffer from using gcc9
  - gcc9 is getting older and misses some new libraries/features
- Sometimes tools try to do system detection or expect some explicit settings for
  platforms that are not x86_64-linux
2022-12-13 21:40:12 +01:00
Alexander Shpilkin f89bd409e9 smlnj,smlnjBootstrap: set meta.mainProgram 2022-05-28 14:48:53 +03:00
Simon Chatterjee 4a4fc6c9c9 smlnjBootstrap: move dependents over to regular smlnj
smlnjBootstrap seems to exist as a workaround for a failing x86_64-darwin build
of regular smlnj. Now this is fixed, the workaround can be removed.
(aarch64-darwin is being actively worked on by the smlnj project, and currently
is supported by neither derivation.)
2021-06-28 10:50:56 +01:00
Simon Chatterjee 9fdc5e10ee smlnj: fix x86_64-darwin build 2021-06-28 10:50:53 +01:00
Ben Siraphob e03c068af5 treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
Ben Siraphob acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00
Michael ReillyandJörg Thalheim 84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Kirill BoltaevandAustin Seipp d55727ac40 smlnj: 110.91 -> 110.95, add 64-bit support
Also drop isDarwin check in `top-level/all-packages.nix` till darwin build is fixed.
2019-12-04 14:30:56 -06:00
volth c814d72b51 treewide: name -> pname 2019-08-17 10:54:38 +00:00
volthandJörg Thalheim 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Vaibhav SagarandVaibhav Sagar a489bcbbe1 smlnjBootstrap: 110.84 -> 110.91 2019-08-04 10:30:18 -04:00
Vaibhav SagarandFrederik Rietdijk 0e02937200 smlnj: don't indicate darwin support 2019-07-13 10:16:10 +02:00
Vaibhav SagarandFrederik Rietdijk 27bfc25689 smlnj: 110.85 -> 110.91 2019-07-13 10:16:10 +02:00
Vaibhav Sagar ad07ad8f79 smlnj: 110.84 -> 110.85 2019-02-05 16:40:12 -05:00
Ashijit Pramanik 273aa1ff81 smlnj: 110.84 includes a new implementation of Abstract Syntax Description Library (ASDL). Adding it as a required source. 2018-11-16 16:17:35 +05:30
Ashijit Pramanik c8115bd75f smlnj: 110.79 -> 110.84 and smlnj-bootstrap: 110.80 -> 110.84 2018-11-16 14:44:41 +05:30
Matthew Bauer 06fa867498 apple_sdk: use multiple outputs 2018-06-09 00:05:38 -04:00
Periklis Tsirakidis 6414533391 darwin: cleanup obsolete sdks 2017-03-24 08:06:03 +01:00
Dan Peebles c1d3c10607 smlnj-bootstrap: 110.76 -> 110.80 2016-09-08 23:12:22 -04:00
Ben Darwin af6dcc9765 smlnj: 110.78 -> 110.79 2015-10-09 23:36:03 -04:00
Anthony Cowley 9651f06a2d smlnj: build on darwin 2015-07-24 18:24:03 -04:00
Pascal Wittmann bb9e9cc3f8 Turned some meta.maintainers into lists 2015-05-14 19:09:43 +02:00
Austin Seipp 715b961bf9 nixpkgs: adopt smlnj, 110.76 -> 110.78
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-04-06 06:28:26 -05:00
Eelco Dolstra 4f7289eec9 Don't use ensureDir 2014-07-22 11:01:32 +02:00
John Wiegley e36e853817 smljnBootstrap: new expression for running smlnj on darwin 2014-06-26 15:54:45 -07:00
Song WenwuandEvgeny Egorochkin b23741da34 Add smlnj-110.76
Based on patch by Marc Weber:
http://lists.science.uu.nl/pipermail/nix-dev/2010-December/005625.html

Close #1058.
2013-10-21 21:46:55 +03:00