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
Sigmanificient
61fe0c0416 pkgs/by-name: remove unused arguments 2024-07-26 10:11:07 +02:00
Brandon W Maister
008bdd3fc9 git-instafix: add quodlibetor as maintainer
I write git-instafix and I want to be added to the reviewers list when it gets updated in nixpkgs.
2024-07-09 21:31:34 -04:00
R. Ryantm
bd0a07aa37 git-instafix: 0.2.5 -> 0.2.7 2024-07-02 08:30:59 +00:00
R. Ryantm
d978d2d57b git-instafix: 0.2.4 -> 0.2.5 2024-06-26 16:12:14 +00:00
R. Ryantm
7bbb24fb11 git-instafix: 0.2.3 -> 0.2.4 2024-06-20 04:42:09 +00:00
R. Ryantm
11c39082ec git-instafix: 0.2.2 -> 0.2.3 2024-05-12 00:57:29 +00:00
R. Ryantm
d91bfb279d git-instafix: 0.2.1 -> 0.2.2 2024-04-17 13:35:25 +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
Shahar "Dawn" Or
6cabf8e212 git-instafix: init at 0.2.1 2024-03-14 19:18:19 +07:00