Commit Graph

39 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
Alyssa Ross
9eaec29fad
onefetch: 2.20.0 -> 2.21.0
Required to build with Rust 1.80.

Link: https://github.com/rust-lang/rust/issues/127343
2024-08-09 15:39:02 +02:00
Julius Michaelis
6a9beaf893 treewide: skip generating shell completions using $out/bin/… when cross compiling
This focuses on Rust packages, since the most commonly used argument
parser library (clap/structopt) makes the following pattern natural and
thus common:

  postInstall = ''
    installShellCompletion --cmd foo \
      --bash <($out/bin/foo completion bash) \
      …

This commit just guards those with

lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform)

splitting the string where unrelated actions are performed.
2024-08-04 10:50:48 +09:00
R. Ryantm
416886e6a3 onefetch: 2.19.0 -> 2.20.0 2024-03-17 14:26:08 +00:00
Sandro Jäckel
f6d192e9b4
onefetch: 2.18.1 -> 2.19.0 2023-12-01 02:24:31 +01:00
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
Sandro Jäckel
cf6c96533b
treewide: reduce packages I maintainer 2023-07-23 19:30:22 +02:00
figsoda
f892e3cd72 onefetch: 2.18.0 -> 2.18.1
Diff: https://github.com/o2sh/onefetch/compare/2.18.0...2.18.1

Changelog: https://github.com/o2sh/onefetch/blob/v2.18.1/CHANGELOG.md
2023-06-24 18:48:27 -04:00
figsoda
adb3dec36b onefetch: 2.17.1 -> 2.18.0
Diff: https://github.com/o2sh/onefetch/compare/2.17.1...2.18.0

Changelog: https://github.com/o2sh/onefetch/blob/v2.18.0/CHANGELOG.md
2023-06-20 14:40:40 -04:00
figsoda
71d1118bd4 onefetch: 2.17.0 -> 2.17.1
Diff: https://github.com/o2sh/onefetch/compare/2.17.0...2.17.1

Changelog: https://github.com/o2sh/onefetch/blob/v2.17.1/CHANGELOG.md
2023-04-28 16:24:26 -04:00
Sandro Jäckel
5b49c4e3a2
onefetch: 2.16.0 -> 2.17.0
Diff: https://github.com/o2sh/onefetch/compare/2.16.0...2.17.0

Changelog: https://github.com/o2sh/onefetch/blob/v2.17.0/CHANGELOG.md
2023-04-09 02:37:14 +02:00
figsoda
337daaec47 onefetch: 2.15.1 -> 2.16.0
Diff: https://github.com/o2sh/onefetch/compare/2.15.1...2.16.0

Changelog: https://github.com/o2sh/onefetch/blob/v2.16.0/CHANGELOG.md
2023-02-24 14:01:45 -05:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
figsoda
6885007b2b onefetch: 2.14.2 -> 2.15.1
Diff: https://github.com/o2sh/onefetch/compare/2.14.2...2.15.1

Changelog: https://github.com/o2sh/onefetch/blob/v2.15.1/CHANGELOG.md
2023-01-19 14:47:21 -05:00
figsoda
62e3072db6 onefetch: fix build 2023-01-18 18:25:01 -05:00
figsoda
2e1966a7e3 onefetch: 2.13.2 -> 2.14.2
Changelog: https://github.com/o2sh/onefetch/blob/v2.14.2/CHANGELOG.md
2022-11-27 18:16:49 -05:00
figsoda
66c7c0b178 onefetch: fix build on darwin 2022-11-17 11:03:20 -05:00
kilianar
2fcba75c19 onefetch: install shell completions 2022-11-17 14:11:00 +01:00
figsoda
9071413f40 onefetch: minor improvements, add figsoda as a maintainer
* add back the zstd-pkg-config patch
* move cmake to nativeBuildInputs
* fix test instead of skipping it
2022-11-06 16:47:29 -05:00
Sandro Jäckel
f237e2b83e
onefetch: 2.12.0 -> 2.13.2 2022-10-30 22:01:11 +01:00
Sandro Jäckel
8b3e54b485
onefetch: 2.11.0 -> 2.12.0 2022-03-30 01:23:45 +02:00
Sandro Jäckel
d31c6bd0eb
onefetch: patch flaky test 2022-03-20 04:11:30 +01:00
Sandro Jäckel
1316a83f43
onefetch: 2.10.2 -> 2.11.0 2022-01-24 04:13:11 +01:00
Sandro Jäckel
d09892f521
onefetch: 2.9.1 -> 2.10.2 2021-07-04 02:40:07 +02:00
Daniël de Kok
85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00
Sandro Jäckel
8cc4978f1f
onefetch: cleanup 2021-02-12 20:35:41 +01:00
R. RyanTM
7d0d15be5a onefetch: 2.7.3 -> 2.9.1 2021-01-20 14:19:35 +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
R. RyanTM
8f4677e222 onefetch: 2.7.1 -> 2.7.3 2020-11-26 14:33:44 +00:00
Oleksii Filonenko
512c3c0a05 maintainers: rename filalex77 -> Br1ght0ne 2020-11-17 13:09:31 +02:00
R. RyanTM
79d04a7cdb onefetch: 2.7.0 -> 2.7.1 2020-11-11 14:58:36 -08:00
Finn Behrens
ad4a4e12e8
onefetch: 2.6.0 -> 2.7.0 2020-11-07 20:33:49 +01:00
Finn Behrens
c4384a1f87
onefetch: 2.5.0 -> 2.6.0 2020-11-04 17:49:46 +01:00
Finn Behrens
8e72b237cd
onefetch: 2.4.0 -> 2.5.0 (#101074) 2020-10-19 16:03:00 +02:00
Finn Behrens
fe9a4da7ee
onefetch: 2.2.0 -> 2.4.0 2020-10-03 21:45:03 +02:00
Benjamin Hipple
2fd069c4e5 onefetch: upgrade cargo fetcher and cargoSha256 2020-03-08 22:10:27 -04:00
Benjamin Hipple
eb11feaa0b treewide: change fetchCargoTarball default to opt-out
Changes the default fetcher in the Rust Platform to be the newer
`fetchCargoTarball`, and changes every application using the current default to
instead opt out.

This commit does not change any hashes or cause any rebuilds. Once integrated,
we will start deleting the opt-outs and recomputing hashes.

See #79975 for details.
2020-02-13 22:41:37 -08:00
Mario Rodas
cb53d49559
onefetch: 2.1.0 -> 2.2.0
Changelog: https://github.com/o2sh/onefetch/releases/tag/v2.2.0
2020-01-04 14:00:00 -05:00
Oleksii Filonenko
fb00dacecc onefetch: init at 2.1.0
Co-authored-by: Kloenk <Kloenk@users.noreply.github.com>
2019-11-27 10:14:26 -08:00