2023-05-14 00:04:39 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2023-08-02 16:03:41 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
2023-05-14 00:04:39 +00:00
|
|
|
, pkg-config
|
|
|
|
, gnutls
|
|
|
|
, libgcrypt
|
|
|
|
, libpar2
|
2023-08-02 16:03:41 +00:00
|
|
|
, libcap
|
2023-05-14 00:04:39 +00:00
|
|
|
, libsigcxx
|
|
|
|
, libxml2
|
|
|
|
, ncurses
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2011-04-19 20:35:24 +00:00
|
|
|
|
2023-08-02 16:03:41 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "nzbget-ng";
|
|
|
|
version = "21.4-rc2";
|
2011-04-19 20:35:24 +00:00
|
|
|
|
2023-08-02 16:03:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nzbget-ng";
|
|
|
|
repo = "nzbget";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-JJML5mtAog5xC7DkthCtoyn5QeC2Z+fdzSuEa/Te0Ew=";
|
2011-04-19 20:35:24 +00:00
|
|
|
};
|
|
|
|
|
2023-08-02 16:03:41 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-05-01 10:02:44 +00:00
|
|
|
|
2023-05-14 00:04:39 +00:00
|
|
|
buildInputs = [
|
|
|
|
gnutls
|
|
|
|
libgcrypt
|
|
|
|
libpar2
|
2023-08-02 16:03:41 +00:00
|
|
|
libcap
|
2023-05-14 00:04:39 +00:00
|
|
|
libsigcxx
|
|
|
|
libxml2
|
|
|
|
ncurses
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
];
|
2011-04-19 20:35:24 +00:00
|
|
|
|
2023-08-02 16:03:41 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -i 's/AC_INIT.*/AC_INIT( nzbget, m4_esyscmd_s( echo ${finalAttrs.version} ) )/' configure.ac
|
|
|
|
'';
|
|
|
|
|
2013-01-06 21:29:16 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-08-20 16:09:11 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) nzbget; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-08-02 16:03:41 +00:00
|
|
|
homepage = "https://nzbget-ng.github.io/";
|
|
|
|
changelog = "https://github.com/nzbget-ng/nzbget/releases/tag/v${finalAttrs.version}";
|
2014-11-19 07:44:54 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2011-04-19 20:35:24 +00:00
|
|
|
description = "A command line tool for downloading files from news servers";
|
2014-11-19 07:44:54 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; unix;
|
2011-04-19 20:35:24 +00:00
|
|
|
};
|
2023-08-02 16:03:41 +00:00
|
|
|
})
|