Commit Graph

6 Commits

Author SHA1 Message Date
Sergey Yakovlev
7c0aa0521d
kcl: 0.9.8 -> 0.10.0 2024-10-01 02:37:16 +03: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
Peder Bergebakken Sundt
a0396ab411 treewide: use src.name in sourceRoot 2024-08-02 14:56:50 +02:00
Reno Dakota
b3d419c3e9
kcl,kclvm,kclvm_cli: remove darwin.cctools
darwin.cctools is now just cctools so referencing it in staging and
staging-next creates eval errors. However, given that cctools is already
part of the darwin stdenv it is not necessary to include the package
directly.
2024-07-26 08:28:21 +00:00
Yvan da Silva
fdb4310a60 kclvm: 0.8.7 -> 0.9.3
Also adds support to macos aarch64 platform
2024-07-25 17:37:49 +02:00
Sergey Yakovlev
15d4c23f58
kclvm: init at 0.8.7 2024-06-13 13:34:24 +03:00