2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, wafHook
|
2021-01-05 17:05:55 +00:00
|
|
|
, python3
|
2020-04-24 23:36:52 +00:00
|
|
|
, asciidoc
|
|
|
|
, docbook_xml_dtd_45
|
|
|
|
, docbook_xsl
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, curl
|
|
|
|
, libevent
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "saldl";
|
2021-04-08 16:26:57 +00:00
|
|
|
version = "41";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-08 16:26:57 +00:00
|
|
|
sha256 = "sha256-PAX2MUyBWWU8kGkaeoCJteidgszh7ipwDJbrLXzVsn0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
wafHook
|
2021-01-05 17:05:55 +00:00
|
|
|
python3
|
2020-04-24 23:36:52 +00:00
|
|
|
asciidoc
|
|
|
|
docbook_xml_dtd_45
|
|
|
|
docbook_xsl
|
|
|
|
libxml2
|
|
|
|
libxslt
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ curl libevent ];
|
|
|
|
|
|
|
|
wafConfigureFlags = [ "--saldl-version ${version}" "--no-werror" ];
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00: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;
|
|
|
|
};
|
|
|
|
}
|