Commit Graph

27 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
aleksana
a9709c299b treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02: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
R. Ryantm
51d906d234 sacc: 1.06 -> 1.07 2023-10-21 21:15:59 +02:00
nicoo
fab52fca51 treewide: sha512 → hash 2023-09-22 18:37:42 +02:00
Theodore Ni
8d922319b7
geomyidae: fix build on darwin (#241438)
A previous patch is no longer needed in the newest version.
2023-07-04 13:42:04 +03:00
Troels Henriksen
475f2428cb
geomyidae: 0.51 -> 0.69 (#241307)
* geomyidae: 0.51 -> 0.69

* Update pkgs/applications/networking/gopher/geomyidae/default.nix

Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>

---------

Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
2023-07-04 03:35:17 +02:00
Felix Albrigtsen
070069676e phetch: init at 1.2.0 2023-01-27 11:09:05 +01:00
Et7f3
ef86d3bf44 geomyidae: fix on darwin 2022-10-07 02:07:45 +02:00
Troels Henriksen
e2f44ca570 geomyidae: 0.50.1 -> 0.51 2022-08-07 15:54:50 -04:00
sternenseemann
d3d7a0b67e sacc: 1.05 -> 1.06 2022-06-18 20:36:28 +02:00
Troels Henriksen
90a741547e geomyidae: init at 0.50.1 2022-05-30 09:57:16 +02:00
sternenseemann
f13eb927bb sacc: 1.04 -> 1.05 2021-12-13 14:10:05 +01:00
sternenseemann
43b33a0aeb sacc: 1.03 -> 1.04 2021-10-23 12:03:41 +02:00
sternenseemann
2cea48e5c6 sacc: fix build on darwin
SIGWINCH is not defined unless we pass -D_DARWIN_C_SOURCE, it seems.
2021-05-04 14:42:30 +02:00
06kellyjac
e79bae00d6 sacc: 1.02 -> 1.03 2021-02-05 20:23:27 +00: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
sternenseemann
00251c0689 sacc: 1.01 → 1.02 2020-11-14 19:02:09 +01:00
sternenseemann
ab602aa6e4 sacc: init at 1.01 2020-08-06 00:19:03 +02:00
Jörg Thalheim
7dfada5f07
gopherclient: remove
- no updated since 2016
- broken since 2018
2020-04-28 10:34:56 +01:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Jonathan Ringer
bd6c0ce7cc gopher: 3.0.11 -> 3.0.17 2019-12-07 16:34:13 -08:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
adisbladis
6d903a9407
gopherclient: Mark as broken
Package does not build
2018-08-27 00:56:56 +08:00
Orivej Desh
e47543f1be gopherclient: init at 2016-10-02 2017-09-10 03:04:57 +00:00
sternenseemann
d6aff31f35 gopher: init at 3.0.11 (#21080) 2016-12-11 19:45:48 +01:00