From 30034ed5a09c612d1be25a2835f22499b47605d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 24 Aug 2024 19:54:59 +0300 Subject: [PATCH] imapsync: 2.229 -> 2.290 Upstream no longer uses git, publishing to https://imapsync.lamiral.info/dist instead. `old_releases` is not exactly what it sounds like, it is just a stable version for release artifacts: https://github.com/imapsync/imapsync/issues/468#issuecomment-2294102132 --- pkgs/tools/networking/imapsync/default.nix | 33 ++++++++++++---------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/pkgs/tools/networking/imapsync/default.nix b/pkgs/tools/networking/imapsync/default.nix index 4c2b4a36e064..9a756aadbf5f 100644 --- a/pkgs/tools/networking/imapsync/default.nix +++ b/pkgs/tools/networking/imapsync/default.nix @@ -1,20 +1,19 @@ -{ lib -, fetchFromGitHub -, makeWrapper -, perl -, perlPackages -, stdenv +{ + lib, + fetchurl, + makeWrapper, + perl, + perlPackages, + stdenv, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "imapsync"; - version = "2.229"; + version = "2.290"; - src = fetchFromGitHub { - owner = "imapsync"; - repo = "imapsync"; - rev = "imapsync-${version}"; - sha256 = "sha256-nlNePOV3Y0atEPSRByRo3dHj/WjIaefEDeWdMKTo4gc="; + src = fetchurl { + url = "https://imapsync.lamiral.info/dist/old_releases/${finalAttrs.version}/imapsync-${finalAttrs.version}.tgz"; + hash = "sha256-uFhTxnaUDP793isfpF/7T8d4AnXDL4uN6zU8igY+EFE="; }; postPatch = '' @@ -44,6 +43,7 @@ stdenv.mkDerivation rec { MailIMAPClient ModuleImplementation ModuleScanDeps + NetServer NTLM PackageStash PackageStashXS @@ -67,7 +67,10 @@ stdenv.mkDerivation rec { mainProgram = "imapsync"; homepage = "https://imapsync.lamiral.info/"; license = licenses.nlpl; - maintainers = with maintainers; [ pSub ]; + maintainers = with maintainers; [ + pSub + motiejus + ]; platforms = platforms.unix; }; -} +})