Commit Graph

11 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
R. Ryantm
772b12befe azpainter: 3.0.7 -> 3.0.8 2024-06-26 03:28:10 +00:00
h7x4
8121f3559a
treewide: add mainProgram 2024-02-11 03:19:15 +01:00
R. Ryantm
50f3f12c99 azpainter: 3.0.6 -> 3.0.7 2023-11-04 11:08:47 -07:00
Nikolay Korotkiy
3ca4c0e0dd
azpainter: 3.0.4 → 3.0.6 2023-01-08 22:49:19 +04:00
Will Dietz
e155371d1e
azpainter: 2.1.6 -> 3.0.4
* azpainter: 2.1.6 -> 3.0.4 (#157548)

* github -> gitlab
* 3.0 "remade as a whole" (translated)
* new deps

* azpainter: add libiconv input on Darwin
and add build-time commands
and enable parallel building
and update meta.homepage

Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
2022-02-16 21:07:54 +01:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Daiderd Jordan
b7ddbd52bd
treewide: replace SRI hashes 2020-06-01 15:24:19 +02:00
Nikolay Korotkiy
73f3469c76
azpainter: 2.1.5 -> 2.1.6 (#86028) 2020-04-26 12:11:09 +00:00
Will Dietz
e90bef28ed
azpainter: 2.1.4 -> 2.1.5 2019-12-04 22:21:06 -06:00
Will Dietz
63c28c839f
azpainter: init at 2.1.4 2019-08-16 19:29:23 -05:00