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
This commit is contained in:
parent
bff3b3c9e1
commit
a7d630d216
1 changed files with 20 additions and 21 deletions
|
@ -1,11 +1,12 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchurl
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, autoreconfHook
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, gnutls
|
, gnutls
|
||||||
, libgcrypt
|
, libgcrypt
|
||||||
, libpar2
|
, libpar2
|
||||||
|
, libcap
|
||||||
, libsigcxx
|
, libsigcxx
|
||||||
, libxml2
|
, libxml2
|
||||||
, ncurses
|
, ncurses
|
||||||
|
@ -14,31 +15,24 @@
|
||||||
, nixosTests
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "nzbget";
|
pname = "nzbget-ng";
|
||||||
version = "21.1";
|
version = "21.4-rc2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/nzbget/nzbget/releases/download/v${version}/nzbget-${version}-src.tar.gz";
|
owner = "nzbget-ng";
|
||||||
hash = "sha256-To/BvrgNwq8tajajOjP0Te3d1EhgAsZE9MR5MEMHICU=";
|
repo = "nzbget";
|
||||||
|
rev = "v${finalAttrs.version}";
|
||||||
|
hash = "sha256-JJML5mtAog5xC7DkthCtoyn5QeC2Z+fdzSuEa/Te0Ew=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||||
# 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 ];
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gnutls
|
gnutls
|
||||||
libgcrypt
|
libgcrypt
|
||||||
libpar2
|
libpar2
|
||||||
|
libcap
|
||||||
libsigcxx
|
libsigcxx
|
||||||
libxml2
|
libxml2
|
||||||
ncurses
|
ncurses
|
||||||
|
@ -46,15 +40,20 @@ stdenv.mkDerivation rec {
|
||||||
zlib
|
zlib
|
||||||
];
|
];
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
sed -i 's/AC_INIT.*/AC_INIT( nzbget, m4_esyscmd_s( echo ${finalAttrs.version} ) )/' configure.ac
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
passthru.tests = { inherit (nixosTests) nzbget; };
|
passthru.tests = { inherit (nixosTests) nzbget; };
|
||||||
|
|
||||||
meta = with lib; {
|
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;
|
license = licenses.gpl2Plus;
|
||||||
description = "A command line tool for downloading files from news servers";
|
description = "A command line tool for downloading files from news servers";
|
||||||
maintainers = with maintainers; [ pSub ];
|
maintainers = with maintainers; [ pSub ];
|
||||||
platforms = with platforms; unix;
|
platforms = with platforms; unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue