Commit Graph

9 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
Felix Buehler
a139f83d6f vcs: remove 'with lib;' 2024-08-16 16:09:03 +02:00
Toni Corvera
5133eeab2d
vcs: correct license to lgpl21Plus 2024-04-26 12:28:34 +02:00
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
Yestin L. Harrison
56cd5ac4db vcs: substitute standalone getopt outside of linux 2021-11-27 23:06:56 -08:00
Sandro Jäckel
6ad10c3bcd
treewide: Remove doBuild cause it does not exist 2021-02-02 14:46:06 +01:00
Ben Siraphob
108bdac3d9 pkgs/applications: stdenv.lib -> lib 2021-01-15 14:24:03 +07:00
Graham Christensen
bc49a0815a
utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
Eric Litak
028e05d8a4
vcs: init at 1.13.4
* vcs: init at 1.13.4

* Update pkgs/applications/video/vcs/default.nix

Co-Authored-By: symphorien <symphorien@users.noreply.github.com>

* Update pkgs/applications/video/vcs/default.nix

Co-authored-by: Ryan Mulligan <ryan@ryantm.com>

Co-authored-by: symphorien <symphorien@users.noreply.github.com>
Co-authored-by: Ryan Mulligan <ryan@ryantm.com>
2020-09-23 21:58:52 -07:00