279 Commits

Author SHA1 Message Date
nixpkgs-ci[bot] 23ee7d594c Merge master into staging-next 2026-03-14 00:21:49 +00:00
Alexander Bantyev 2839911e81 various: add security-review team as a maintainer
Adds the @NixOS/security-review team as a maintainer to multiple
packages deemed to be important security-wise.

For the motivation of the package list, see:
https://github.com/NixOS/nixpkgs/issues/494349#issuecomment-4005099033
2026-03-05 15:19:44 +01:00
nixpkgs-ci[bot] 8d13a0a53f Merge staging-next into staging 2026-03-02 06:20:30 +00:00
Fernando Rodrigues 2639078372 treewide: cleanup fetchFromGitLab default value (#478670) 2026-03-02 01:01:24 +00:00
Aliaksandr 732c45067d treewide: cleanup fetchFromGitLab default value 2026-02-19 02:50:29 +02:00
Doron Behar 203d604c06 gnupg1compat: nixfmt 2026-02-08 17:16:42 +02:00
Doron Behar 828ff2e417 gnupg{24,1compat}: split info, man & doc outputs 2026-02-08 17:05:46 +02:00
nixpkgs-ci[bot] e217c74eac Merge staging-next into staging 2026-02-06 18:16:24 +00:00
Markus Sütter 196b385317 various: add meta.identifier.cpeParts to a batch of packages 2026-02-02 09:22:55 +01:00
Stig Palmquist 88088f7841 gnupg: 2.4.8 -> 2.4.9
- Updates gnupg 2.4.8 to 2.4.9

- Update freepg patches to source-2.4.9-freepg

- Use `substituteInPlace` with `--replace-fail` to make keyserver change
  more robust.

- Update `static.patch` to generated `configure` (Thanks alyssais)
2026-01-28 05:30:49 +01: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
Stig Palmquist ac8430e5b1 gnupg: Update FreePG patch comments 2025-08-28 15:12:04 +02:00
Wolfgang Walther 90604d95bc Merge branch 'staging-next' into staging 2025-07-24 14:33:09 +02:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Silvan Mosberger f0c791e510 gnupg: Enable test suite 2025-07-22 19:51:09 +02:00
Silvan Mosberger 12003e5b3a gnupg: Add patch comments 2025-07-22 19:51:09 +02:00
misilelab be9e7056e4 gnupg: 2.4.7 -> 2.4.8
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=NEWS;hb=refs/tags/gnupg-2.4.8

CVE-2022-3219.patch is now
0019-Disallow-compressed-signatures-and-certificates.patch from FreePG.

Signed-off-by: misilelab <misileminecord@gmail.com>
Co-authored-by: Alyssa Ross <hi@alyssa.is>
2025-06-27 13:05:34 +02:00
octvs 2c39ef9a73 gnupg: fix availability of libexec tools
Correct typo on `postInstall` attribute of `gnupg` derivation.

Commit 6f635e3 introduced a code snippet in `postInstall` to add libexec
tools from gnupg (such as gpg-preset-passphrase) to `$out/bin/`,
which would eventually appear on `PATH`. However with a minor typo,
missing the necessary asterisk.
2025-04-14 19:26:20 +02:00
Gaétan Lepage 95e012e549 treewide: remove some unused patches files (#394746) 2025-04-01 14:36:54 +02:00
Sigmanificient 0489b3976a treewide: remove unused patches files 2025-04-01 13:59:25 +02:00
Rebecca Kelly f27be6eaa7 gnupg: move env vars to env.
This fixes an issue where it no longer builds if you use stdenvAdapters.withCFlags.

Signed-off-by: Rebecca Kelly <bk@ancilla.ca>
2025-03-27 08:41:21 -04:00
Alyssa Ross 79f1b8d888 gnupg: don't use autoreconfHook
This was added because the static patch modified configure.ac,
requiring configure to be regenerated.  For reasons we don't totally
understand, regenerating configure has all sorts of other undesirable
side effects.  So to unbreak things, instead of regenerating
configure, we can include just the configure changes relevant to the
static patch in the patch file.

Fixes: 35c9771eee ("gnupg: fix static")
2025-02-20 13:50:40 +01:00
Alyssa Ross 35c9771eee gnupg: fix static
Patch has been submitted upstream, but past experience trying to send
patches to GnuPG does not make me optimistic that this will be dealt
with any time soon.  If it doesn't work out upstream I'll submit it to
freepg, whose patchset we're already using.
2025-02-09 11:04:56 +01:00
github-actions[bot] 477a9c6eb6 Merge master into staging-next 2025-01-11 06:04:16 +00:00
Thomas Gerbet d0eb1f1195 gnupg1orig: drop
The last upstream release was 6 years ago and there is no remaining
usage within nixpkgs. Given it is a security sensitive package, it would
be nice to remove it before running into issues.
2025-01-11 00:30:24 +01:00
Yureka 5e98eb8163 gnupg: fix cross
libgpg-error is both buildInput iand nativeBuildInput

Change-Id: Iec2f19ee770fb66aedaa444c16ebf3091b04bcef
2025-01-06 21:13:35 +01:00
github-actions[bot] a58f8abed0 Merge staging-next into staging 2025-01-06 00:15:41 +00:00
Thomas Gerbet f8bca3f33f gnupg22: drop
`gnupg22` is end-of-life since 2024-12-31, see https://www.gnupg.org/download/index.html#end-of-life
2025-01-05 22:53:59 +01:00
Stig Palmquist 0d7cdd823a gnupg24: add freepg patches
Add patches to GnuPG 2.4 from FreePG, a common resource for GnuPG
downstream packagers to track, maintain, and apply commonly-used patches
for GnuPG that have been refused by upstream.

The purpose of adding these patches to nixpkgs is to ensure
compatibility with other OpenPGP tools.

https://gitlab.com/freepg/gnupg/
2024-12-29 19:34:17 +01:00
Stig ed1ae48513 gnupg: 2.4.5 -> 2.4.7 (#352434) 2024-12-11 09:41:50 +01:00
Silvan Mosberger 667d42c00d 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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev 57b193d8dd
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +01:00
Silvan Mosberger 4f0dadbf38 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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Noa Aarts 563e111e67 gnupg: 2.4.5 -> 2.4.7 2024-12-10 12:23:39 +01:00
Noa Aarts d022ffbafd gnupg: format with nixfmt 2024-12-10 12:23:38 +01:00
aleksana b74fdd2386 treewide: remove redundant patches and locks
These files are no longer referenced.
2024-11-08 12:54:15 +08:00
Stig Palmquist 618239546a gnupg24: add myself as maintainer 2024-09-29 00:08:28 +02: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
Peder Bergebakken Sundt 441708dd85 treewide: simplify boolean logic 2024-08-09 16:01:55 +02: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
Matt Martin 6f01a4014b gnupg22: fix cross compilation
Attempting to replicate changes from https://github.com/NixOS/nixpkgs/pull/298001/files
2024-06-23 09:23:33 -07:00
Colin d599839060 gnupg: fix cross compilation
when `npth` upgraded 1.6 -> 1.7, the `npth-config` binary it previously
provided was removed, and functionality folded into `gpgrt-config`. see:
<https://github.com/gpg/npth/blob/417abd56fd7bf45cd4948414050615cb1ad59134/NEWS#L8>
2024-03-22 04:35:46 +00:00
R. Ryantm bcb2eaea45 gnupg: 2.4.4 -> 2.4.5 2024-03-08 00:46:24 +00:00
David Morgan b42437fd01 [staging] gnupg 2.4.3 -> 2.4.4 2024-01-29 14:04:39 +00:00
Vladimír Čunát ab8bda5a1b Merge #265294: gnupg: 2.4.1 -> 2.4.3
...into staging
2024-01-18 13:37:38 +01:00
Stig 1606d72fc3 Merge pull request #262928 from Valodim/gpg-revert-rfc4880bis
[staging] gnupg: revert defaults to openpgp in 2.4 branch
2024-01-01 13:01:54 +01:00
Sergei Trofimovich 2941ce1993 gnupg22: fix tests eval
Without the change `tests` attribute fails to resolve testsuite:

    $ nix build --no-link -f. gnupg22.tests
    error: attribute 'nixosTests' missing
2023-12-28 23:12:55 +00:00
Peder Bergebakken Sundt f41aba3739 treewide: remove unreferenced patch files
Found with `fd \\.patch$ pkgs/ -x bash -c 'rg -F "{/}" pkgs/ -q || echo {}'`
2023-12-01 06:11:20 +01:00
IogaMaster 84ef5ebe4d gnupg: 2.4.1 -> 2.4.3 2023-11-03 12:33:41 -06:00
Vincent Breitmoser b8f8c9b413 gnupg: revert defaults to openpgp in 2.4 branch
GnuPG upstream changed some of its behavior on the 2.4 branch to use its
own, non-standardized format for keys and encrypted data by default.
This affects in particular the way that keys are generated, and
algorithm capability flags within now signal the ability to use GnuPG's
own AEAD encryption format.

Notably, these formats are not compatible with other implementations of
OpenPGP. It is based on a draft spec that is specific to GnuPG
(draft-koch-openpgp-2015-rfc4880bis), and not compatible with the format
that is on track to be standardized as upcoming OpenPGP version 6.

The political circumstances that led to this issue are complex (and a
bit dumb), but in the end GnuPG emitting incompatible packets is
certainly in noone's interest. This patch is a revert of a GnuPG
upstream commit as it is applied by Fedora, I suggest we follow suit
until the situation becomes more clear.

See also: https://src.fedoraproject.org/rpms/gnupg2/pull-request/15
2023-10-23 14:44:44 +02:00
David McFarland dce1a85956 Revert "Revert "gnupg: 2.4.0 -> 2.4.1""
This reverts commit 87681f75eb.
2023-06-29 13:13:26 +02:00