diff options
author | Elis Hirwing <elis@hirwing.se> | 2023-08-02 18:03:41 +0200 |
---|---|---|
committer | Elis Hirwing <elis@hirwing.se> | 2023-08-03 14:27:23 +0200 |
commit | a7d630d216e1e5f244b1ce3606a1769810d6b9bf (patch) | |
tree | 5fb65047ed8f8502291dd1bd9fbf323c281e1ccd /pkgs/tools | |
parent | bff3b3c9e17a4163f583490a5fbefff8b68a6c49 (diff) |
nzbget: 21.1 -> 21.4-rc2
About 9 months ago the NzbGet development officially stopped and there were an announcement on reddit: https://www.reddit.com/r/usenet/comments/z62skp/nzbget_development_officially_abandoned/ The official github repository has been archived to be marked readonly: https://github.com/nzbget/nzbget However, there's a fork and they are responsive to issues and makes new commits: https://github.com/nzbget-ng/nzbget This fixes #244142
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/nzbget/default.nix | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/pkgs/tools/networking/nzbget/default.nix b/pkgs/tools/networking/nzbget/default.nix index 9141a2932bbbb..4e67e81a7de83 100644 --- a/pkgs/tools/networking/nzbget/default.nix +++ b/pkgs/tools/networking/nzbget/default.nix @@ -1,11 +1,12 @@ { lib , stdenv -, fetchurl -, fetchpatch +, fetchFromGitHub +, autoreconfHook , pkg-config , gnutls , libgcrypt , libpar2 +, libcap , libsigcxx , libxml2 , ncurses @@ -14,31 +15,24 @@ , nixosTests }: -stdenv.mkDerivation rec { - pname = "nzbget"; - version = "21.1"; +stdenv.mkDerivation (finalAttrs: { + pname = "nzbget-ng"; + version = "21.4-rc2"; - src = fetchurl { - url = "https://github.com/nzbget/nzbget/releases/download/v${version}/nzbget-${version}-src.tar.gz"; - hash = "sha256-To/BvrgNwq8tajajOjP0Te3d1EhgAsZE9MR5MEMHICU="; + src = fetchFromGitHub { + owner = "nzbget-ng"; + repo = "nzbget"; + rev = "v${finalAttrs.version}"; + hash = "sha256-JJML5mtAog5xC7DkthCtoyn5QeC2Z+fdzSuEa/Te0Ew="; }; - patches = [ - # openssl 3 compatibility - # https://github.com/nzbget/nzbget/pull/793 - (fetchpatch { - name = "daemon-connect-dont-use-fips-mode-set-with-openssl-3.patch"; - url = "https://github.com/nzbget/nzbget/commit/f76e8555504e3af4cf8dd4a8c8e374b3ca025099.patch"; - hash = "sha256-39lvnhBK4126TYsRbJOUxsV9s9Hjuviw7CH/wWn/VkM="; - }) - ]; - - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ gnutls libgcrypt libpar2 + libcap libsigcxx libxml2 ncurses @@ -46,15 +40,20 @@ stdenv.mkDerivation rec { zlib ]; + prePatch = '' + sed -i 's/AC_INIT.*/AC_INIT( nzbget, m4_esyscmd_s( echo ${finalAttrs.version} ) )/' configure.ac + ''; + enableParallelBuilding = true; passthru.tests = { inherit (nixosTests) nzbget; }; meta = with lib; { - homepage = "https://nzbget.net"; + homepage = "https://nzbget-ng.github.io/"; + changelog = "https://github.com/nzbget-ng/nzbget/releases/tag/v${finalAttrs.version}"; license = licenses.gpl2Plus; description = "A command line tool for downloading files from news servers"; maintainers = with maintainers; [ pSub ]; platforms = with platforms; unix; }; -} +}) |