Commit Graph

13 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
R. Ryantm
ee452d8bb8 ocm: 0.1.70 -> 0.1.73 2024-04-06 19:59:39 +00: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
R. Ryantm
4c89a5dd60 ocm: 0.1.69 -> 0.1.70 2023-10-13 20:40:58 +00:00
R. Ryantm
f6d683919c ocm: 0.1.68 -> 0.1.69 2023-10-03 13:36:13 +00:00
R. Ryantm
6f9d792724 ocm: 0.1.67 -> 0.1.68 2023-09-20 05:12:27 +00:00
R. Ryantm
6da3dc95e2 ocm: 0.1.66 -> 0.1.67 2023-06-17 02:41:08 +00:00
R. Ryantm
5224fd727b ocm: 0.1.65 -> 0.1.66 2023-03-03 05:07:02 +00:00
R. Ryantm
efcc85edb3 ocm: 0.1.64 -> 0.1.65 2022-12-24 18:04:36 +00:00
Stephan Heßelmann
fd58375f82 ocm: 0.1.63 -> 0.1.64 2022-07-06 23:03:18 +02:00
Stephan Heßelmann
dda98ce0b7 ocm: 0.1.62 -> 0.1.63 2022-06-18 15:52:30 +02:00
Artturin
f1c7f19e49 treewide: testVersion -> testers.testVersion 2022-04-22 16:24:27 +03:00
Stephan
6250441d8a
ocm: init at 0.1.62 (#165483)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-27 15:15:42 +02:00