2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, autoconf-archive
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, gettext, libssl, txt2man }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "axel";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.17.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "axel-download-accelerator";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-5GUna5k8GhAx1Xe8n9IvXT7IO6gksxCLh+sMANlxTBM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config autoconf-archive txt2man ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ gettext libssl ];
|
|
|
|
|
|
|
|
installFlags = [ "ETCDIR=${placeholder "out"}/etc" ];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/doc
|
|
|
|
cp doc/axelrc.example $out/share/doc/axelrc.example
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Console downloading program with some features for parallel connections for faster downloading";
|
|
|
|
homepage = "https://github.com/axel-download-accelerator/axel";
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
platforms = with platforms; unix;
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "axel";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|