Commit Graph

13 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
Philip Taron
82929eb694
public-inbox: remove with statements 2024-08-18 06:32:22 -07:00
Alyssa Ross
9d441104d3 public-inbox: fix tests
Doesn't backport easily.  It looks like it's only the test that's
broken, and we can re-enable it in the next release.

Fixes: f41621432f ("perl: 5.36.0 -> 5.38.0")
Fixes: https://github.com/NixOS/nixpkgs/issues/248738
2023-08-17 16:32:51 +00:00
Alyssa Ross
c2730b96dc public-inbox: add xapian to PATH
Some public-inbox programs run xapian-compact, so we need to make sure
it's in PATH.
2023-06-20 16:58:47 +00:00
Julien Moutinho
50301d73e9 public-inbox: 1.8.0 -> 1.9.0
Co-authored-by: Alyssa Ross <hi@alyssa.is>
2023-06-04 13:09:28 +00:00
Julien Moutinho
4fdd015c76 public-inbox: fix InlineC
Co-authored-by: Alyssa Ross <hi@alyssa.is>
2023-06-04 13:09:28 +00: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
Julien Moutinho
fd2616c92c public-inbox: unstable-2022-04-05 -> 1.8.0 2022-05-12 01:56:46 +02:00
Julien Moutinho
8b2b5be3b5 public-inbox: 1.7.0 -> unstable-2022-04-05 2022-05-12 01:56:45 +02:00
Julien Moutinho
6cf2f46995 public-inbox: 1.6.1 -> 1.7.0 2022-05-12 01:56:43 +02:00
Julien Moutinho
9b6223d1fa public-inbox: 1.2.0 -> 1.6.1 2022-05-12 01:56:04 +02:00
Alyssa Ross
10b1ba0c93 public-inbox: fix build
This fixes some two-digit year rounding bugs that started triggering
because 2020 is closer to 2070 than 1970.  Apparently two digits years
are still a thing.
2020-01-14 19:54:35 +00:00
Alyssa Ross
8f8514c6ba public-inbox: init at 1.2.0
highlight's Perl bindings are currently disabled on Darwin, but I
didn't make the dependency here conditional so that if that is ever
fixed, this function won't need to be updated. p-i is smart enough to
disable the test for highlight if it can't find the Perl module.
2019-12-20 19:47:42 +00:00