Commit Graph

15 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
Martin Weinelt
abdf5dc772
treewide: remove pythonRelaxDepsHook references
It is is now provided automatically, when `pythonRelaxDeps` or
`pythonRemoveDeps` is defined through `mk-python-derivation`.
2024-06-14 14:52:00 +02:00
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
Robert Schütz
01fc7c527c piston-cli: fix build 2023-07-14 08:04:38 -07:00
Weijia Wang
13600367b2 treewide: misc: use top-level fetchPypi 2023-05-25 17:07:31 +03:00
Albert Safin
779cfe0054 piston-cli: fix build 2022-11-27 16:33:33 +00:00
Rick van Schijndel
cd3c25616d treewide: pkgs/tools: mark broken for darwin
All packages that were failing on x86_64-darwin are marked broken.
I'm assuming here that these are also broken on aarch64-darwin.
2022-05-29 10:56:04 +02:00
Sandro Jäckel
183c7ebcae
pythonPackages: normalise prompt_toolkit 2021-07-23 16:36:39 +02:00
Ethan Edwards
7046e687bc
piston-cli: add python3Packages.more-itertools as dep 2021-06-30 00:47:50 -04:00
Ethan Edwards
2e23c27709
piston-cli: 1.4.1 -> 1.4.3 2021-06-20 20:51:09 -04:00
Ethan Edwards
d1fe6418cc piston-cli: 1.3.0 -> 1.4.1 2021-05-28 10:58:15 -07:00
Ethan Edwards
e3763e4799
piston-cli: 1.2.2 -> 1.3.0 (#121448) 2021-05-02 16:33:41 +02:00
Ethan Edwards
59e9083ed5 piston-cli: 1.2.1 -> 1.2.2 2021-02-17 13:35:11 -05:00
Ethan Edwards
cd1452da8d piston-cli: change buildPythonPackage to buildPythonApplication 2021-02-14 13:08:11 -05:00
Ethan Edwards
1ddc68333b piston-cli: init at 1.2.1 2021-02-09 19:32:54 -05:00