Commit Graph

11 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
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
Anthony Roussel
70e6366ffa
pgbadger: 12.2 -> 12.4
https://github.com/darold/pgbadger/compare/v12.2...v12.4
https://github.com/darold/pgbadger/releases/tag/v12.4
2024-03-21 00:20:26 +01:00
Anthony Roussel
227b3773a4
pgbadger: add passthru.{updateScript,tests.version} 2024-03-21 00:20:24 +01:00
Anthony Roussel
ee10bed8c4
pgbadger: lint with nixfmt-rfc-style 2024-03-21 00:05:34 +01:00
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
Connor Feeley
6d50b4ba87 pgbadger: fix build on darwin
The pgbadger build was failing on darwin due to an error while trying to
generate the package's documentation.

The pgbadger script is executed during the build to dump the help text.
The script's shebang line is too long on Darwin and needs to be
shortened using 'shortenPerlShebang' for it to execute.
2023-11-20 17:19:05 -08:00
Mario Rodas
bd194f336c pgbadger: 11.5 -> 12.2
Diff: https://github.com/darold/pgbadger/compare/v11.5...v12.2

Changelog: https://github.com/darold/pgbadger/raw/v12.2/ChangeLog
2023-08-28 11:55:56 -07: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
Dmitry Kalinkin
3375bca830
pgbadger: mark as broken on darwin 2022-02-22 01:24:50 -05:00
Graham Christensen
e6d63982d9 pgbadger: init at 11.5 2021-06-01 12:23:51 -04:00