Commit Graph

11 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
Guilhem Saurel
92e27aee5f qgv: init at 1.3.5 2024-09-23 16:52:24 +02:00
Gavin John
5bffe8d9b5
qgroundcontrol: switch to using libsForQt5 2024-09-13 16:02:00 -07:00
Gavin John
4c6a603295
qgroundcontrol: Remove pname misuse 2024-09-13 16:01:57 -07:00
Gavin John
54bda8090b
qgroundcontrol: add changelog 2024-09-13 16:01:56 -07:00
Gavin John
e78df2f24e
qgroundcontrol: remove a with lib; 2024-09-13 16:01:54 -07:00
Gavin John
4f688aecec
qgroundcontrol: Replace homepage with https link 2024-09-13 16:01:53 -07:00
Gavin John
16cba249af
qgroundcontrol: nixfmt 2024-09-13 16:01:51 -07:00
Gavin John
df27526744
qgroundcontrol: move to by-name 2024-09-13 16:01:50 -07:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Weijia Wang
93254942b1 qgrep: 1.1 -> 1.3 2024-01-18 04:35:52 +01:00