Commit Graph

181 Commits

Author SHA1 Message Date
Stefan Frijters
3211eabb31 gettext: move makeFlags into the main attrset
This saves a big reformatting with finalAttrs and is maybe a bit cleaner?
2026-08-02 23:52:42 +02:00
Stefan Frijters
5fb27e0291 gettext: enable structuredAttrs, use finalAttrs 2026-08-02 23:45:42 +02:00
Philip Taron
a36842736d gettext: 0.26 -> 1.0 (#485233) 2026-03-21 23:57:24 +00:00
David McFarland
b6e1c32c80 gettext: remove obsolete cygwin patches
Fixes: ffd70beac5 ("gettext: 0.25.1 -> 0.26")
2026-02-23 22:02:54 -04:00
Sizhe Zhao
e074c87f12 gettext: 0.26 -> 1.0 2026-01-30 13:38:37 +08:00
Weijia Wang
ffd70beac5 gettext: 0.25.1 -> 0.26 2026-01-26 18:20:31 +01:00
nixpkgs-ci[bot]
076c9e28d2 Merge master into staging-next 2026-01-12 06:08:14 +00:00
Stefan Frijters
f3ff9c6413 gettext: move LDFLAGS into env for structuredAttrs 2026-01-07 21:30:36 +01:00
David McFarland
906a8b9e5f gettext: fix cygwin build 2026-01-05 22:05:50 -04:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Wolfgang Walther
535b720589 Merge branch 'master' into staging-next 2025-07-24 14:27:50 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Alyssa Ross
39752822fd gettext: 0.25 -> 0.25.1 2025-07-13 20:38:43 +02:00
Alyssa Ross
fc7352a9b9 gettext: backport upstream memory safety fix
This fixes building perlPackages.Po4a on musl.  While we haven't seen
it with Glibc, I have no reason to believe the bug is musl-specific.

Fixes: 74042ae1cd ("gettext: 0.22.5 -> 0.25")
2025-07-07 13:33:53 +02:00
Weijia Wang
8cdd90d2e7 gettext: set am_cv_func_iconv_works to yes on darwin 2025-06-22 12:06:40 +02:00
misilelab
74042ae1cd gettext: 0.22.5 -> 0.25
https://savannah.gnu.org/news/?id=10699
https://savannah.gnu.org/news/?id=10730
https://savannah.gnu.org/news/?id=10765
https://savannah.gnu.org/news/?id=10769

Signed-off-by: misilelab <misileminecord@gmail.com>
2025-06-22 12:05:36 +02:00
Arnout Engelen
06416f1cf0 gettext: make archive.dir.tar reproducible
Fixes #380856 by keeping the original timestamp from the .tar.gz and
explicitly setting file ownership
2025-03-03 11:39:18 +01:00
Silvan Mosberger
e3491c9e40 bash: Make interactive the default
The status quo of `bash` not being interactive is frustrating for many users,
because trying to use it interactively is just messed up, and
`bashInteractive` is not intuitive and barely discoverable.

This was brought to my (and many others) attention by @stahnma in his
[talk at CfgMgmtCamp 2025](https://cfp.cfgmgmtcamp.org/ghent2025/talk/YUVUTN/),
where he highlighted this as one of the frustrations he ran into when
learning Nix.

Why this is fine:
- No reason for not making interactive the default was given in the original commit (6c6ff6f36f), but probably it was due to the increase in closure size
- The closure size only increases by 6.9MiB (19.5%) today, with the
  added dependency on the store paths for readline and ncurses, which
  are needed on systems in almost all cases anyways
- If somebody really needs to get a more minimal system, they can use
  the newly-introduced `bashNonInteractive` instead now
- Though to apply it consistently, they'll need to do that in an
  overlay like
  ```
  final: prev: {
    bash = self.bashNonInteractive;
  }
  ```

  Or alternatively using the `system.replaceDependencies.replacements`
  NixOS option approach.

While there's also other such `*Interactive` packages that could use the
same treatment, `bash` is a great start.

This was already attempted before in
https://github.com/NixOS/nixpkgs/pull/151227, but was not continued for
unknown reason.

To avoid stdenv becoming bigger, all uses of bash in the (working)
stdenv's are changed to the explicitly non-interactive version here.

This commit will however still cause a mass rebuild for all packages (and reverse deps)
making use of the default bash.
2025-02-05 00:31:46 +01:00
Silvan Mosberger
84d4f874c2 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 78e9caf153
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00
Tomodachi94
369a093a22 Merge staging-next into staging 2024-11-30 00:01:26 +00:00
Audrey Dutcher
5b0ffc8037 gettext: remove dead patch causing failures on BSDs (#360044) 2024-11-29 16:29:56 +01:00
Reno Dakota
dd0746731b gettext: enable format hardening 2024-11-22 16:10:49 +00:00
Reno Dakota
4f9abde8dd gettext: 0.22.4 -> 0.22.5
https://savannah.gnu.org/news/?id=10597
2024-11-22 16:07:31 +00:00
Randy Eckenrode
227075c83e gettext: implement clang 18 on Darwin workaround 2024-11-20 02:14:49 +00:00
Weijia Wang
22f218c9b0 gettext: 0.21.1 -> 0.22.4 2024-11-20 02:14:48 +00:00
Arthur Gautier
75584cdd14 pkgsLLVM.gettext: fixup clang compilation 2024-11-08 20:58:42 -08:00
Tristan Ross
8477b05aac gettext: fix compiling with clang 2024-11-06 19:33:44 -08:00
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
Anderson Torres
084dc9a4df treewide: remove vrthra from meta.maintainers [no orphans]
Tracking issue: https://github.com/NixOS/nixpkgs/issues/290642

Inactive since at least 2017.
2024-07-07 12:18:57 -03:00
Audrey Dutcher
846de80d1c various: Enable updateAutotoolsGnuConfigScriptsHook
Prior to August 2023, any config.guess generated by autoconf will
include a hardcoded /usr/bin/uname invocation for FreeBSD on any
architecture other than arm. This clearly doesn't work under nix.
We must then update or otherwise patch each old config.guess.
2024-05-27 11:09:28 -04:00
Audrey Dutcher
e0cbd6c7c7 gettext: remove spurious xz
diffoscope indicates that the builds with and without xz are identical.
2024-05-26 11:30:57 -07:00
Weijia Wang
629dd2dd4c Merge pull request #280197 from wegank/gettext-windows
pkgsCross.mingwW64.gettext: fix build
2024-01-11 19:49:19 +01:00
Paul Meyer
db94b9c1f5 gettext: fix longDescription markdown 2024-01-11 15:37:33 +01:00
Weijia Wang
53c6d0a53d pkgsCross.mingwW64.gettext: fix build 2024-01-11 07:19:17 +01:00
Arnout Engelen
8398c6fff6 Merge pull request #245885 from raboof/gettext-msginit-avoid-date-in-generated-output
gettext: do not output date when --no-translator is set
2023-08-17 12:56:14 +02:00
Arnout Engelen
ae011819c4 gettext: do not output date when --no-translator is set
See upstream https://savannah.gnu.org/bugs/index.php?59658
Fixes #245356
2023-07-28 16:30:20 +02:00
Jan Tojnar
7bc650ecca pkgsCross.mingwW64.gettext: fix build
We are unable to build bash so let’s drop it for now on MinGW
(partially reverting 7d0399279a there).
This will cause shebangs not to be patched.
2023-07-26 20:54:47 +03:00
Randy Eckenrode
d6628cffd1 gettext: 0.21 -> 0.21.1
Unfortunately, there’s no release announcement for this release. From
the [NEWS][1].

> Version 0.21.1 - October 2022
>
> * Runtime behaviour:
>   - On AIX, locale names with a script or with an uppercase language are now
>     supported.
>     For example, sr_Cyrl_RS.UTF-8 is treated like sr_RS.UTF-8@cyrillic, and
>     EN_US.UTF-8 is treated like en_US.UTF-8.
>
> * The base Unicode standard is now updated to 14.0.0.
>
> * Portability:
>   - Building on macOS 11/arm64 is now supported.
>   - Building on Linux/powerpc64le with glibc ≥ 2.35 is now supported.

The vendored gnulib was also updated, which indirectly fixes a build
failure with clang 16. The version in 0.20 fails to build because it
attempts to assign an incompatible function pointer that should have but
does not have `__attribute__((noreturn))`. On clang 16, this is an error
by default.

[1]: https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob_plain;f=NEWS;hb=8b38ee827251cadbb90cb6cb576ae98702566288
2023-05-28 21:43:05 -04:00
Adam Joseph
810c6c387b gettext: apply gnulib.passthru.longdouble-redirect-patch 2023-04-05 15:51:17 -07:00
Felix Buehler
cdb39a86e0 treewide: use optionalString 2023-02-13 21:52:34 +01:00
Artturin
adc8900df1 treewide: fix some core package structuredAttrs 2022-12-08 21:05:28 +02:00
Artturin
7d0399279a gettext: enable strictDeps 2022-05-07 18:59:32 +03:00
Marius DAVID
d398bdde95 gettext: fix windows cross compilation 2022-02-01 10:41:36 +01:00
Ben Siraphob
66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
zowoq
19699d691c gettext: drop darwin patch 2020-08-09 17:41:12 +02:00
Lancelot SIX
bb167702fa gettext: 0.20.1 -> 0.21
See https://lists.gnu.org/archive/html/info-gnu/2020-07/msg00009.html
for release information
2020-08-04 21:59:52 +02:00
Matthew Bauer
d0677e6d45 treewide: add warning comment to “boot” packages
This adds a warning to the top of each “boot” package that reads:

  Note: this package is used for bootstrapping fetchurl, and thus cannot
  use fetchpatch! All mutable patches (generated by GitHub or cgit) that
  are needed here should be included directly in Nixpkgs as files.

This makes it clear to maintainer that they may need to treat this
package a little differently than others. Importantly, we can’t use
fetchpatch here due to using <nix/fetchurl.nix>. To avoid having stale
hashes, we need to include patches that are subject to changing
overtime (for instance, gitweb’s patches contain a version number at
the bottom).
2020-07-31 08:56:53 +02:00
John Ericson
1ac5398589 *-wrapper; Switch from infixSalt to suffixSalt
I hate the thing too even though I made it, and rather just get rid of
it. But we can't do that yet. In the meantime, this brings us more
inline with autoconf and will make it slightly easier for me to write a
pkg-config wrapper, which we need.
2020-05-12 00:44:44 -04:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Kirill Elagin
c0d1f26d42 gettext: Remove the rebuild optimisation hack 2020-01-31 15:49:26 -05:00