2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-01-17 00:11:58 +01:00
|
|
|
, fetchFromGitHub
|
2021-01-17 04:51:22 +01:00
|
|
|
, pkg-config
|
2020-01-17 00:11:58 +01:00
|
|
|
, wafHook
|
2020-12-10 14:09:03 +01:00
|
|
|
, python3
|
2020-01-17 00:11:58 +01:00
|
|
|
, asciidoc
|
|
|
|
, docbook_xml_dtd_45
|
|
|
|
, docbook_xsl
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, curl
|
|
|
|
, libevent
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "saldl";
|
|
|
|
version = "40";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "19ajci5h5gdnrvwf0l7xy5s58z2di68rrvcmqpsmpp4lfr37rk2l";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 04:51:22 +01:00
|
|
|
pkg-config
|
2020-01-17 00:11:58 +01:00
|
|
|
wafHook
|
2020-12-10 14:09:03 +01:00
|
|
|
python3
|
2020-01-17 00:11:58 +01:00
|
|
|
asciidoc
|
|
|
|
docbook_xml_dtd_45
|
|
|
|
docbook_xsl
|
|
|
|
libxml2
|
|
|
|
libxslt
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ curl libevent ];
|
|
|
|
|
|
|
|
wafConfigureFlags = [ "--saldl-version ${version}" "--no-werror" ];
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-01-17 00:11:58 +01:00
|
|
|
description = "CLI downloader optimized for speed and early preview";
|
|
|
|
homepage = "https://saldl.github.io";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ zowoq ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|