2023-05-14 01:04:39 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, pkg-config
|
|
|
|
, gnutls
|
|
|
|
, libgcrypt
|
|
|
|
, libpar2
|
|
|
|
, libsigcxx
|
|
|
|
, libxml2
|
|
|
|
, ncurses
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2011-04-19 21:35:24 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nzbget";
|
2021-08-15 14:19:09 +01:00
|
|
|
version = "21.1";
|
2011-04-19 21:35:24 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-04-22 09:14:28 +01:00
|
|
|
url = "https://github.com/nzbget/nzbget/releases/download/v${version}/nzbget-${version}-src.tar.gz";
|
2023-05-14 01:04:39 +01:00
|
|
|
hash = "sha256-To/BvrgNwq8tajajOjP0Te3d1EhgAsZE9MR5MEMHICU=";
|
2011-04-19 21:35:24 +01:00
|
|
|
};
|
|
|
|
|
2023-05-14 01:04:39 +01:00
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-05-01 11:02:44 +01:00
|
|
|
|
2023-05-14 01:04:39 +01:00
|
|
|
buildInputs = [
|
|
|
|
gnutls
|
|
|
|
libgcrypt
|
|
|
|
libpar2
|
|
|
|
libsigcxx
|
|
|
|
libxml2
|
|
|
|
ncurses
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
];
|
2011-04-19 21:35:24 +01:00
|
|
|
|
2013-01-06 21:29:16 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-08-20 17:09:11 +01:00
|
|
|
passthru.tests = { inherit (nixosTests) nzbget; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://nzbget.net";
|
2014-11-19 07:44:54 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2011-04-19 21:35:24 +01: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 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2011-04-19 21:35:24 +01:00
|
|
|
};
|
|
|
|
}
|