nixpkgs/pkgs/tools/networking/nzbget/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.2 KiB
Nix
Raw Normal View History

2023-05-14 00:04:39 +00:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
2024-03-19 01:40:40 +00:00
, boost
2023-05-14 00:04:39 +00:00
, pkg-config
, gnutls
, libgcrypt
, libpar2
, libcap
2023-05-14 00:04:39 +00:00
, libsigcxx
, libxml2
, ncurses
, openssl
, zlib
, nixosTests
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nzbget";
2024-05-15 14:18:00 +00:00
version = "24.1";
src = fetchFromGitHub {
2024-03-19 01:40:40 +00:00
owner = "nzbgetcom";
repo = "nzbget";
rev = "v${finalAttrs.version}";
2024-05-15 14:18:00 +00:00
hash = "sha256-HovfnTsgu07/lp/spI+iA8H7lOj0Qyrri2MOJKyMKHQ=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
2017-05-01 10:02:44 +00:00
2023-05-14 00:04:39 +00:00
buildInputs = [
2024-03-19 01:40:40 +00:00
boost
2023-05-14 00:04:39 +00:00
gnutls
libgcrypt
libpar2
libcap
2023-05-14 00:04:39 +00:00
libsigcxx
libxml2
ncurses
openssl
zlib
];
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;
passthru.tests = { inherit (nixosTests) nzbget; };
meta = with lib; {
2024-03-19 01:40:40 +00:00
homepage = "https://nzbget.com/";
changelog = "https://github.com/nzbgetcom/nzbget/releases/tag/v${finalAttrs.version}";
license = licenses.gpl2Plus;
description = "Command line tool for downloading files from news servers";
2024-03-19 02:12:18 +00:00
maintainers = with maintainers; [ pSub devusb ];
platforms = with platforms; unix;
2024-02-11 02:19:15 +00:00
mainProgram = "nzbget";
};
})