Commit Graph

52 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
Felipe Silva
223f611353 isync: use finalAttrs pattern 2024-09-19 19:14:55 +02:00
Felipe Silva
c60cc72185 isync: 1.4.4 -> 1.5.0
Buffer too small can now be fixed by defining QPRINTF_BUFF.
Patch on unexpected EOF is part of new version.

`QPRINT_BUFF` fix discussed at
https://sourceforge.net/p/isync/mailman/isync-devel/thread/87fsevvebj.fsf%40steelpick.2x.cz/#msg37731590.

Release notes: https://sourceforge.net/projects/isync/files/isync/1.5.0/
2024-09-19 19:14:55 +02:00
Linus Heckemann
e5adf0b547 maintainers: drop lheckemann 2024-06-21 15:54:54 +02:00
Felipe Silva
e0c2405594
isync: add default SASL mechanisms when using cyrus-sasl-xoauth2
The XOAUTH2 support was added in 47eda8e, overriding `SASL_PATH` and
dropping all default SASL mechanisms from `cyrus_sasl`. The option was
disabled by default in fe02c5e, but users manually overriding isync to
enable `withCyrusSaslXoauth2` still face this issue.

This commit sets `SASL_PATH` to a combination of `cyrus_sasl` and
`cyrus-sasl-xoauth2`, as suggested in #235959.
2024-04-16 20:14:18 -03:00
Michael Weiss
fe02c5ee1a
isync: Disable the XOAUTH2 support by default as it caused regressions
The XOAUTH2 support was recently added in 47eda8e00a but apparently it
causes regressions when using other SASL methods.
An example error message:
```
IMAP command 'AUTHENTICATE XOAUTH2 SOMEHASH=' returned an error: NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
```

The cause seems to be that overriding `SASL_PATH` drops all available
SASL mechanisms from `cyrus_sasl`, so only `XOAUTH2` (and `EXTERNAL`)
will be left. See [0] and the following comments for more details.

We'd need to set `SASL_PATH` to a combination/merge of
`${cyrus_sasl}/lib/sasl2` and `${cyrus-sasl-xoauth2}/lib/sasl2`.
Anyway, it seems best to disable the XOAUTH2 support by default due to
the two other concerns mentioned in the comment.

[0]: https://github.com/NixOS/nixpkgs/pull/235148#issuecomment-1575432154

Reported-by: Dominik Schrempf <dominik.schrempf@gmail.com>
2023-06-04 22:03:22 +02:00
Michal Sojka
47eda8e00a isync: add optional support for XOAUTH2 authentication method 2023-05-31 13:30:55 +02:00
Michael Weiss
75eb0688e8
isync: Fix SSL error "unexpected eof while reading"
This seems to be a regression of the switch to OpenSSL3 and affects at
least GMail users:
https://sourceforge.net/p/isync/mailman/isync-devel/thread/Y2kZ0YgS2Goayshn%40ugly/#msg37731849

Fix #202595
2022-11-27 11:55:47 +01:00
Michal Sojka
24c0592e58 isync: Fix "Buffer too small" error 2022-11-07 09:46:57 +01:00
Brian Leung
93fe6c89c8
isync: set mainProgram 2022-05-22 20:10:10 -07:00
Alvar Penning
8500a748bb isync: 1.4.3 -> 1.4.4
Fixes CVE-2021-3657 and CVE-2021-44143 and closes #147884
2021-12-03 14:08:13 +01:00
Michael Weiss
09bbf2d3ec
isync: 1.4.2 -> 1.4.3 2021-07-29 21:16:40 +02:00
Dominique Martinet
254a89e7d5 isync: 1.4.1 -> 1.4.2
Fixes CVE-2021-3578: possible remote code execution

https://sourceforge.net/p/isync/mailman/message/37297759/
2021-06-07 23:24:10 +09:00
Florian Klink
169253be53 isync: 1.4.0 -> 1.4.1
Fixes CVE-2021-20247: isync/mbsync data leak/destruction vulnerability

https://sourceforge.net/p/isync/mailman/message/37225234/
2021-02-22 20:14:37 +01:00
Michael Weiss
d0b891c828
isync: 1.3.4 -> 1.4.0
Important changes:
- The 'isync' compatibility wrapper was removed.
- The Master/Slave configuration keywords where deprecated and should be
  replaced with Far/Near. All users should update their configuration
  file accordingly. It's a trivial change and the old Master/Slave
  keywords will still work for now but result in the following message:
  Notice: Master/Slave are deprecated; use Far/Near instead.

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-02-04 19:54:54 +01:00
Michael Weiss
e74cfaf671
isync: 1.3.3 -> 1.3.4 (#111789) 2021-02-04 12:19:16 +01:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Michael Weiss
36626150c2
isync: 1.3.2 -> 1.3.3 2020-08-05 11:35:22 +02:00
Michael Weiss
6aefd19fc8
isync: 1.3.1 -> 1.3.2 2020-07-08 22:50:40 +02:00
Linus Heckemann
656468f428 audacity, isync: add self to maintainers 2020-06-07 14:07:20 +02:00
Michael Weiss
6c1b066eb5
isync: Add myself (@primeos) as maintainer
Since 887295fd2d we need a new maintainer and I depend on this
software. The rest of the changes is just a refactoring (apart from
meta attributes).
2020-05-10 12:54:05 +02:00
Jörg Thalheim
887295fd2d
treewide: remove the-kenny from maintainers
@the-kenny did a good job in the past and is set as maintainer in many package,
however since 2017-2018 he stopped contributing. To create less confusion
in pull requests when people try to request his feedback, I removed him as
maintainer from all packages.
2020-05-09 10:28:57 +01:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
R. RyanTM
184073af2a isync: 1.3.0 -> 1.3.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/isync/versions
2019-06-01 15:44:38 -07:00
Matthew Bauer
06c403e846 treewide: remove unstable packages
There’s nothing wrong with unstable packages when they are maintained
and frequently updated. However, when they become out-of-date, as many
do, it is usually best to just get rid of them as the stable version
is become newer than the unstable version. This removes any packages
called "unstable" that have not been updated in over 1 year. Affected
packages include:

- isyncUnstable
- sxhkd-unstable
- dosbox-unstable

Revert "treewide: remove unstable packages"

This reverts commit df01b0b37a04624cfe6f8d2ccb42b99289841b68.
2018-11-13 19:14:44 -06:00
Will Dietz
0a15643401 isync: add zlib dep for compression support
(cherry picked from commit f26f2c8b6f755708a8bfa7aa4f56c52a2c751df6)
2018-09-28 22:58:34 -05:00
Lluís Batlle i Rossell
66d7126255 Take me (viric) out of most maintenance
Since years I'm not maintaining anything of the list below other
than some updates when I needed them for some reason. Other people
is doing that maintenance on my behalf so I better take me out but
for very few packages. Finally!
2018-07-22 21:50:19 +02:00
Anthony Cowley
edcdb95746 isync: 1.2.1 -> 1.3.0 2017-10-17 20:33:33 -04:00
John Ericson
531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00
Thomas Tuegel
9ed95423d4
isyncUnstable: 20170329 -> 20170514 2017-07-12 09:52:48 -05:00
Thomas Tuegel
5cf9cbdc17
isyncUnstable: 20161218 -> 20170329 2017-04-03 07:23:09 -05:00
Thomas Tuegel
953a1e76a2
isyncUnstable: add ttuegel to maintainers 2017-02-16 09:50:31 -06:00
Thomas Tuegel
3994004a6f
isyncUnstable: build with zlib support 2017-02-16 09:50:18 -06:00
Thomas Tuegel
88fec3005b
isyncUnstable: 2015-11-08 -> 20161218
The extra dashes are removed from the version number because Nix treats only the
first component as the version, i.e. `2015-11-08` is version `2015` with two
tags `-11` and `-08`.
2017-02-16 09:48:45 -06:00
Thomas Tuegel
2143043146
isyncUnstable: download over https 2017-02-16 09:48:26 -06:00
Tuomas Tynkkynen
bac26e08db Fix lots of fetchgit hashes (fallout from #15469) 2016-06-03 17:17:08 +03:00
Tobias Geerinckx-Rice
32d40f0f98 Remove no longer (or never) referenced patches
55 files changed, 6041 deletions. Tested with `nix-build -A tarball`.
2016-01-24 02:02:21 +01:00
Moritz Ulrich
24e0868763 isync: Add unstable variant. 2016-01-05 12:21:10 +01:00
Damien Cassou
2088e147b9 isync: 1.2.0 → 1.2.1 2015-11-17 11:00:42 -03:00
Tobias Geerinckx-Rice
158e1cfdd0 Don't use "with licenses;" for single licences
And don't use square brackets on such lines.
2015-05-28 19:20:29 +02:00
Tobias Geerinckx-Rice
b2d7f4b1ba Use common licence attributes from lib/licenses.nix
Many (less easily automatically converted) old-style strings
remain.

Where there was any possible ambiguity about the exact version or
variant intended, nothing was changed. IANAL, nor a search robot.

Use `with stdenv.lib` wherever it makes sense.
2015-05-27 22:00:06 +02:00
_1126
a3785360a9 isync: adds cyrus_sasl to (re)enable authentication 2015-04-07 11:49:24 +02:00
William A. Kennington III
5c2dbf9827 isync: 1.1.2 -> 1.2.0 2015-04-05 16:17:38 -07:00
Moritz Ulrich
54cfcbc826 isync: update from 1.1.1 to 1.1.2 2015-01-25 22:37:34 +01:00
Eric Seidel
0577499d74 fix some packages on darwin 2014-09-09 13:54:26 -07:00
Moritz Ulrich
2486f89aed isync: Bump to 1.1.1 2014-08-12 13:34:37 +02:00
Tom Hinton
cf0f710b13 Update isync version to 1.1.0 (doesn't need recursive listing patch any more) 2014-03-18 10:14:52 +00:00
William A. Kennington III
bdb842d5eb Move all db4 packages to the default db5 2014-02-15 12:03:02 +01:00
Eelco Dolstra
e07ce3314d Fix some "meta.licenses" attributes 2014-01-25 03:04:46 +01:00
Moritz Ulrich
24466df152 Update isync to 1.0.6 2013-05-03 11:03:49 +02:00