Commit Graph

14 Commits

Author SHA1 Message Date
R. Ryantm
467b94b337 c3c: 0.6.2 -> 0.6.3 2024-10-03 13:06:32 +00: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
R. Ryantm
295497cd66 c3c: 0.6.1 -> 0.6.2 2024-09-03 19:39:12 +00:00
Doron Behar
2ecfdda4cd c3c: switch from testVersion to versionCheckHook
`versionCheckHook` is much more verbose then `testVersion`, and it
forces you to observe the failure when building it, and not only on CI /
if you explicitly build `c3c.passthru.tests`.
2024-08-17 20:10:54 +03:00
Owen Shepherd
713b076c47
c3c: fix source hash
In 842a15bf09, c3c was updated to version 0.6.1, but the source hash
wasn't changed, the upshot of which seems to be that users with access
to a cache get the old version, and users that don't get sha
mismatches.
2024-08-12 22:40:53 +01:00
0x61nas
817eb5cf22
c3c: rfc format 2024-07-28 11:34:08 +03:00
0x61nas
49fb0494b9
c3c: add maintainer anas 2024-07-28 11:34:08 +03:00
0x61nas
842a15bf09
c3c: 0.5.5 -> 0.6.1 2024-07-28 11:34:07 +03:00
Tomodachi94
3760be881c
c3c: migrate to finalAttrs pattern 2024-06-17 12:37:41 -07:00
Tomodachi94
e44f0528f4
c3c: add version check 2024-06-17 12:37:06 -07:00
Tomodachi94
598462adbd
c3c: specify meta.mainProgram
causes a warning when we try to use lib.getExe in later commits
2024-06-06 18:22:38 -07:00
Floris Stoica
a9c6372eba c3c: unstable-2021-07-30 -> 0.5.5
Update c3c compiler to the newest released stable version.
2024-05-06 21:09:33 +02:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Lucas Ransan
fe6caae93d
c3c: init at unstable-2021-07-30 2021-07-31 13:14:50 +02:00