Commit Graph

17 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
Nguyễn Gia Phong
4ea3cb472b
flare: 1.13.04 -> 1.14 2023-03-30 23:10:31 +09:00
Naïm Favier
9160044f5f
treewide/makeWrapper: replace --run cd with --chdir
Lay the groundwork for switching to binary wrappers by reducing uses
of `--run` (which is not supported by `makeBinaryWrapper`).
2022-03-19 09:46:31 +01:00
Nguyễn Gia Phong
6218cc15a1 flare: 1.13 -> 1.13.04 2022-02-10 11:48:37 -08:00
Nguyễn Gia Phong
02c976001a
flare: 1.12 -> 1.13
Also add myself as a maintainer.
2022-02-06 14:44:03 +07:00
Nguyễn Gia Phong
b38d8b9960
flare: 1.12rc2 -> 1.12 2021-08-03 14:57:06 +07:00
Sandro
3018b27b01
Merge pull request #130251 from McSinyx/flare-1.12rc2
flare: 1.12rc1 -> 1.12rc2
2021-07-15 20:44:38 +02:00
Nguyễn Gia Phong
b9cb6066f7
flare: 1.12rc1 -> 1.12rc2 2021-07-15 15:11:37 +07:00
Rick van Schijndel
facdb727a0 flare: move makeWrapper to nativeBuildInputs 2021-07-12 21:55:53 +02:00
Nguyễn Gia Phong
873fd459a3
flare: 1.11 -> 1.12rc1 2021-07-06 22:50:34 +07:00
Ben Siraphob
2e34288f0d pkgs/games: stdenv.lib -> lib 2021-01-15 13:36:04 +07: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
c0bw3b
69b393ace5 Treewide: update some problematic homepages
These URLs are reported as problematic by Repology.
It could be a permanent redirection
or the page does not exist anymore
2019-12-08 10:21:29 -08:00
Aaron Andersen
3c1458c065 flare: add darwin support 2019-08-03 08:12:24 -04:00
Aaron Andersen
14e3ee4860 flare: 1.10 -> 1.11 2019-08-03 07:19:11 -04:00
Aaron Andersen
784812cc5c flare: init at 1.10 2019-05-19 17:59:37 -04:00