Commit Graph

18 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
h7x4
efdec26090
treewide: install missing desktopItems 2023-12-02 06:57:21 +01:00
figsoda
83161a9b84 ajour: normalize pname
fixes `nix run .#ajour`
2023-05-02 13:48:18 -04:00
Yureka
f8cbc3c281 tree-wide: convert rust with git deps to importCargoLock 2023-03-26 01:52:04 +01:00
OPNA2608
d2f268745a treewide: autoPatchelfHook only on Linux 2022-03-23 21:37:39 +01:00
Martin Weinelt
c075119091
ajour: 1.3.1 -> 1.3.2
Adds libEGL to rpath.
2021-12-12 02:22:11 +01:00
Martin Weinelt
b62c799d04 ajour: 1.3.0 -> 1.3.1 2021-09-14 19:32:03 +02:00
Martin Weinelt
c54b495059
ajour: 1.2.5 -> 1.3.0 2021-08-08 01:15:49 +02:00
R. RyanTM
1ff933002d ajour: 1.2.1 -> 1.2.5 2021-07-28 09:43:51 +00:00
R. RyanTM
e1c735229e ajour: 1.2.0 -> 1.2.1 2021-07-24 15:40:21 +02:00
Martin Weinelt
2ac25ed56e ajour: 1.1.0 -> 1.2.0 2021-05-21 21:22:06 -07:00
Martin Weinelt
d407a38a96
ajour: 1.0.0 -> 1.1.0 2021-04-24 01:50:09 +02:00
R. RyanTM
1d671fd0dc ajour: 0.7.2 -> 1.0.0 2021-03-25 00:38:59 +00:00
Martin Weinelt
90e31bac7b ajour: 0.7.1 -> 0.7.2
https://github.com/ajour/ajour/releases/tag/0.7.2
2021-03-05 19:01:15 +01:00
R. RyanTM
17ba6130e8 ajour: 0.7.0 -> 0.7.1 2021-02-16 14:12:23 +00:00
Martin Weinelt
06309fa1c4
ajour: 0.6.3 -> 0.7.0 2021-02-02 17:27:52 +01:00
Martin Weinelt
0ffffcc5da
ajour: init at 0.6.3 2021-01-25 17:17:19 +01:00