2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, autoconf-archive
|
2021-01-17 04:51:22 +01:00
|
|
|
, pkg-config, gettext, libssl, txt2man }:
|
2007-08-16 21:50:59 +02:00
|
|
|
|
2014-12-19 22:57:16 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-07-12 11:31:45 +02:00
|
|
|
pname = "axel";
|
2021-12-24 02:24:31 +01:00
|
|
|
version = "2.17.11";
|
2014-12-19 22:57:16 +01:00
|
|
|
|
2019-07-12 11:31:45 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "axel-download-accelerator";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-24 02:24:31 +01:00
|
|
|
sha256 = "sha256-yC4TL8IXWGEwRXAyeon6QnQa+rT1xL/McLsghjZ4ky4=";
|
2007-08-16 21:50:59 +02:00
|
|
|
};
|
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config autoconf-archive txt2man ];
|
2016-11-19 10:19:54 +01:00
|
|
|
|
|
|
|
buildInputs = [ gettext libssl ];
|
2015-11-20 17:02:45 +01:00
|
|
|
|
2019-08-14 04:55:13 +02:00
|
|
|
installFlags = [ "ETCDIR=${placeholder "out"}/etc" ];
|
2015-11-20 17:02:45 +01:00
|
|
|
|
2022-09-17 05:02:00 +02:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/doc
|
|
|
|
cp doc/axelrc.example $out/share/doc/axelrc.example
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2013-10-05 16:22:46 +02:00
|
|
|
description = "Console downloading program with some features for parallel connections for faster downloading";
|
2019-05-25 17:58:45 +02:00
|
|
|
homepage = "https://github.com/axel-download-accelerator/axel";
|
2014-12-19 22:57:16 +01:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2020-01-13 11:04:58 +01:00
|
|
|
platforms = with platforms; unix;
|
2018-07-22 17:33:09 +02:00
|
|
|
license = licenses.gpl2;
|
2007-08-16 21:50:59 +02:00
|
|
|
};
|
|
|
|
}
|