Commit Graph

11 Commits

Author SHA1 Message Date
Artturin
63fa53d97c treewide: reformat files which need reformatting after
`treewide: replace stdenv.is with stdenv.hostPlatform.is`
2024-09-25 00:04:39 +03:00
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
Sebastian Sellmeier
0e6a8e8072
protonmail-desktop: Small consitency change of the update-script using universal build for darwin 2024-08-14 20:17:15 +02:00
R. Ryantm
1a1c8d5ac7 protonmail-desktop: 1.0.5 -> 1.0.6 2024-08-12 04:05:48 +00:00
Sebastian Sellmeier
dffdc50d99
protonmail-desktop: nixfmt (rfc-style) 2024-07-24 17:22:23 +02:00
Sebastian Sellmeier
b745525fea
protonmail-desktop: 1.0.4 -> 1.0.5
Includes refactoring for update-script
2024-07-24 17:22:23 +02:00
Matteo Pacini
5dd893e2aa protonmail-desktop: darwin support, add maintainer 2024-06-27 21:08:07 +01:00
R. Ryantm
081d3f6988 protonmail-desktop: 1.0.3 -> 1.0.4 2024-06-25 14:54:35 +00:00
R. Ryantm
3eff38ff21 protonmail-desktop: 1.0.2 -> 1.0.3 2024-05-28 15:11:06 +00:00
Sebastian Sellmeier
79c3b6337b
protonmail-desktop: 1.0.1 -> 1.0.2 2024-05-10 15:31:30 +02:00
Radoslaw Sniezek
2d76120d0c protonmail-desktop: init at 1.0.1
Add package for proton mail desktop app in the beta version.

Apply suggestions from code review

Apply batch of suggestions from CR by @dotlambda.

Co-authored-by: Robert Schütz <github@dotlambda.de>
2024-03-28 11:17:51 +01:00