Commit Graph

12 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
R. Ryantm
89508a7f1f hyx: 2021.06.09 -> 2024.02.29 2024-02-29 22:58:13 +00:00
R. Ryantm
90bc2ec5ae hyx: 2020-06-09 -> 2021.06.09 2021-12-10 17:42:11 +00:00
Dmitry Kalinkin
8b2abe429d
hyx: use memstreamHook 2021-08-24 18:21:40 -04:00
Nikolay Korotkiy
f585a26878
hyx: enable on darwin 2020-07-22 13:10:08 +03:00
Nikolay Korotkiy
fe6c0ff6b2
hyx: 0.1.5 -> 2020-06-09 2020-07-22 13:09:03 +03:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Jörg Thalheim
80318523af
hyx: limit to linux
clock_gettime is not available on macOS
2018-11-10 09:38:23 +00:00
Jörg Thalheim
1fadff893f
hyx: disable wall to fix darwin build 2018-11-10 09:34:56 +00:00
R. RyanTM
9fdf71d28f hyx: 0.1.4 -> 0.1.5
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/hyx/versions
2018-11-09 14:58:11 -08:00
Franz Pletz
366136806b
hyx: init at 0.1.4 2018-01-27 22:59:19 +01:00