Commit Graph

10 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
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
068c9a72fe
Merge pull request #250940 from r-ryantm/auto-update/PageEdit
PageEdit: 1.9.20 -> 2.0.0
2023-08-29 21:56:02 +02:00
R. Ryantm
3bf068398e PageEdit: 1.9.20 -> 2.0.0 2023-08-23 09:30:43 +00:00
K900
6edd6f71c7 treewide: clean up all qttranslations workarounds
There are two kinds of changes here:
- removing explicit qttranslations path hardcoding from applications that were patched to do it
- replacing qttranslations in buildInputs with qttools for packages that really depend on the latter

After this, qttranslation is never used outside Qt itself, as it should.
2023-08-15 22:11:39 +03:00
Weijia Wang
cdb1801e28 PageEdit: fix build on aarch64-darwin 2023-04-18 14:40:23 +03:00
R. Ryantm
d970656eb4 PageEdit: 1.9.10 -> 1.9.20 2022-09-04 10:26:52 +00:00
Artturin
732f1d8142 treewide: convert string cmakeFlags to list of strings 2022-07-05 04:05:30 +03:00
kilianar
a1f1122afb PageEdit: 1.7.0 -> 1.9.10 2022-06-14 10:57:12 +02:00
pasqui23
72f9a08648
PageEdit: init at 1.7.0 (#153403)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-01-16 18:31:03 +01:00