Commit Graph

9 Commits

Author SHA1 Message Date
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
h7x4
12315f53ff treewide: add mainProgram 2023-11-24 21:01:03 +01:00
Matthias Beyer
3d1703e576
treewide: add matthiasbeyer to a bunch of packages (#248566) 2023-08-11 18:41:21 -04:00
R. Ryantm
870c44295a t-rec: 0.7.5 -> 0.7.6 2023-01-31 11:19:04 +00:00
R. Ryantm
00157d95d2 t-rec: 0.7.4 -> 0.7.5 2022-10-06 00:46:41 +00:00
R. Ryantm
bfe067c2f6 t-rec: 0.7.3 -> 0.7.4 2022-07-31 02:58:42 +00:00
R. Ryantm
56c8868908 t-rec: 0.6.0 -> 0.7.3 2022-03-21 19:20:06 +00:00
Stéphan Kochen
12103ae09f t-rec: fix darwin build 2021-05-18 18:25:30 -07:00
Ana Hobden
c8d9af9f4a t-rec: init at 0.6.0
Introduce [`t-rec`](https://github.com/sassman/t-rec-rs), a terminal
recorder.

Usage:

```bash
nix run .#t-rec
```

Upon exit, `t-rec` will save recordings of the session to disk in GIF
and MP4.

Signed-off-by: Ana Hobden <operator@hoverbear.org>
2021-05-07 16:10:23 -07:00