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
Christoph Heiss
2ad965e1db
trurl: 0.14 -> 0.16
git changelog: https://github.com/curl/trurl/compare/trurl-0.14...trurl-0.16

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-09-19 15:29:30 +02:00
R. Ryantm
02c7a60eab trurl: 0.13 -> 0.14 2024-07-30 00:34:06 +00: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
R. Ryantm
396e42cb6e trurl: 0.12 -> 0.13 2024-05-15 15:03:37 +00:00
Christoph Heiss
824e196d79
trurl: 0.10 -> 0.12
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-04-22 21:57:16 +02:00
Christoph Heiss
5d87212871
trurl: drop now-obsolete postPatch
This was only an issue with the 0.9 release, which has been corrected
with 0.10 since then.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-20 19:33:21 +01:00
R. Ryantm
769a9543e0 trurl: 0.9 -> 0.10 2024-02-20 07:37:19 +00:00
h7x4
8121f3559a
treewide: add mainProgram 2024-02-11 03:19:15 +01:00
Christoph Heiss
e544011130
trurl: 0.8 -> 0.9
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-10-31 21:43:17 +01:00
figsoda
251d2cbfc2 pkgs/tools/networking: remove dead code 2023-07-25 11:36:57 -04:00
Christoph Heiss
0c5d52596f
trurl: 0.7 -> 0.8
Also drop the dependency on the Python3 `packaging` package, which was
dropped upstream with commit 3129d40 [0].

[0] 3129d40956

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-06-20 22:40:02 +02:00
Christoph Heiss
439f2eea90
trurl: 0.6 -> 0.7
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-05-29 20:50:07 +02:00
Christoph Heiss
215801b5f4
trurl: add passthru.tests.version
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-04-26 16:33:46 +02:00
Christoph Heiss
018fe5d71b
trurl: 0.4 -> 0.6
- upstream switched from using perl to python3 for running tests.
- the build process now relies on `curl-config` being present
- man pages now land in a separate output

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-04-26 16:30:32 +02:00
Christoph Heiss
df87a35173
trurl: 0.3 -> 0.4
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-04-12 14:05:10 +02:00
Christoph Heiss
453c8f4157
trurl: init at 0.3
This is a new tool for "translating and transposing URLs, made by curl's
Daniel Sternberg.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-04-06 16:29:30 +02:00