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
Edwin Mackenzie-Owen
45db886a30 moonlight-qt: add libdrm to buildInputs
Listed as build requirement in source repo's README.
Required (at least in some cases) for hardware-accelerated video
decoding to work.
2024-08-11 19:43:33 +02:00
aleksana
592e3845c4 treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
Zhong Jianxin
52aa4beb18 moonlight-qt: upgrade to qt6 2024-07-05 09:03:23 +08:00
Zhong Jianxin
f3cf3042b9 moonlight-qt: Add myself as maintainer 2024-06-30 19:43:52 +08:00
Zhong Jianxin
40af21d0b3 moonlight-qt: 6.0.0 -> 6.0.1 2024-06-30 19:36:58 +08:00
Zhong Jianxin
a5110a69ae moonlight-qt: Add passthru.updateScript 2024-06-30 19:32:05 +08:00
Zhong Jianxin
75fe4b5039 moonlight-qt: Format using nixfmt-rfc-style and sort args 2024-06-13 19:22:21 +08:00
Zhong Jianxin
eba57e502d moonlight-qt: Move to pkgs/by-name 2024-06-13 19:17:46 +08:00