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
R. Ryantm
297ca08c8e jwt-cli: 6.1.0 -> 6.1.1 2024-08-22 03:19:44 +00: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
Robert Helgesson
efc32e7a1c jwt-cli: install shell completion 2024-06-02 08:53:39 +02:00
R. Ryantm
2e28da99b5 jwt-cli: 6.0.0 -> 6.1.0 2024-05-27 20:00:33 +02:00
figsoda
f97ce0a9a8 pkgs/tools/security: remove dead code
with the help of deadnix & nil
2023-07-12 14:35:00 -04:00
R. Ryantm
ba786a3964 jwt-cli: 5.0.3 -> 6.0.0 2023-06-27 23:19:23 +02:00
Robert Helgesson
4df2c1fe35 jwt-cli: 5.0.2 -> 5.0.3 2022-05-03 23:51:48 +02:00
Malo Bourgon
0e802eafad treewide: add meta.mainProgram to many packages 2022-04-14 10:24:01 -07:00
Robert Helgesson
c4189a376d
jwt-cli: 5.0.1 -> 5.0.2 2022-01-22 19:01:15 +01:00
Robert Helgesson
ba8ec8bf86 jwt-cli: 5.0.0 -> 5.0.1 2022-01-15 12:04:37 +01:00
Robert Helgesson
68f226aedb jwt-cli: 4.0.0 -> 5.0.0
Also expand install check with a JWT decode call.
2021-11-21 22:45:16 +01: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
R. RyanTM
c2eadf2148
jwt-cli: 3.3.0 -> 4.0.0 2021-02-21 18:29:38 +01:00
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +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
Robert Helgesson
bd970a5e17 jwt-cli: 3.2.1 -> 3.3.0 2021-01-01 12:03:13 +01:00
Robert Helgesson
9dfcba812a
jwt-cli: 3.1.0 -> 3.2.1 2020-09-16 23:25:52 +02:00
William Kral
fb5a153c26 jwt-cli: fix build 2020-09-10 17:18:33 +10:00
zowoq
473536e3b5 buildRustPackage: remove platform.all from packages 2020-08-16 12:48:18 +10:00
Robert Helgesson
c9d3517368 jwt-cli: 3.0.1 -> 3.1.0 2020-04-22 13:47:48 -07:00
Robert Helgesson
0bce142b1e
jwt-cli: 2.5.2 -> 3.0.1 2020-03-17 19:43:53 +01:00
Benjamin Hipple
d31aae2865 jwt-cli: upgrade cargo fetcher and cargoSha256
Infra upgrade as part of #79975; no functional change expected.
2020-02-27 23:19:22 -05: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
Robert Helgesson
d084221b36
jwt-cli: 2.5.1 -> 2.5.2 2020-02-09 17:33:08 +01:00
Robert Helgesson
b108fd5843
jwt-cli: fix build on Darwin 2020-01-12 15:11:17 +01:00
Robert Helgesson
a8d1f3233b
jwt-cli: init at 2.5.1 2020-01-11 12:34:35 +01:00