Commit Graph

12 Commits

Author SHA1 Message Date
Emily
6b35b9b68b mlton: clean up after x86_64-darwin drop 2026-07-15 03:58:17 +01:00
poz
f89d3199c6 mlton: migrate from sha256 to hash in all packages 2026-02-11 16:56:14 +01:00
jopejoe1
eb0fb69ba1 mlton: change license to smlnj 2025-09-29 20:51:56 +02:00
Philip Taron
4d263e0599 treewide: String escape fixes (#365186) 2024-12-15 14:02:40 -08:00
piegames
ac27331127 mlton: Fix invalid string escape 2024-12-14 14:04:36 +01:00
FliegendeWurst
54b140d429 mlton20211017Binary: fix and enable strictDeps 2024-12-11 12:10:30 +01: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
Arne Keller
794630183a mlton: enable aarch64-darwin (#302487) 2024-12-06 16:43:45 +01: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
Adam Goode
8328049351 mlton: enable aarch64-darwin 2024-04-08 23:23:14 -04:00
Adam Goode
cb8d3762a6 mlton: bootstrap with 20210117 version
This includes fixes for the incorrect hashes copied from 20180207-binary.nix.
2024-04-08 23:21:54 -04:00
Adam Goode
318fba182a mlton: 20210107 -> 20210117
It looks like the last update
(https://github.com/NixOS/nixpkgs/pull/176677) got the version number
wrong (20210107, but should be 20210117). See
https://github.com/MLton/mlton/releases/tag/on-20210117-release that
has a similar error in the heading (but not in the URL or links).

This corrects this version mismatch. There is no change to the content
of the package.
2024-03-31 21:10:02 -04:00