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
Matthieu Barthel
05b20e0227
clipqr: 1.2.0 -> 1.3.0 2024-08-22 20:45:43 +02:00
Matthieu Barthel
fc32bc9ebf
clipqr: fix build on nixpkgs unstable 2024-08-10 20:56:57 +02:00
h7x4
8121f3559a
treewide: add mainProgram 2024-02-11 03:19:15 +01:00
Matthieu Barthel
28a0891db7
clipqr: 1.1.0 -> 1.2.0 2023-12-22 11:45:11 +01:00
Matthieu Barthel
5d1c30e7f8
clipqr: 1.0.1 -> 1.1.0 2023-11-19 17:42:43 +01:00
Aaron Jheng
131541abf7
clipqr: 1.0.0 -> 1.0.1 2023-05-26 02:54:26 +00:00
Matthieu Barthel
78a694fff4
clipqr: mark broken on darwin 2022-11-07 22:30:18 +01:00
Matthieu Barthel
4f010615bd
clipqr: init at 1.0.0
clipqr: add myself in maintainers list

clipqr: add gpg fingerprint + fix syntax

clipqr: sort maintainer entry

clipqr: fix syntax

Co-authored-by: Azat Bahawi <azat+github@bahawi.net>

clipqr: add strip flags

Co-authored-by: Azat Bahawi <azat+github@bahawi.net>

clipqr: use pkg-config

Co-authored-by: Azat Bahawi <azat+github@bahawi.net>

clipqr: fix syntax

Co-authored-by: Azat Bahawi <azat+github@bahawi.net>

clipqr: fix syntax + remove xorg dev outputs

clipqr: misc fixes
2022-07-22 18:27:32 +02:00