2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-01-17 09:11:58 +10:00
|
|
|
, fetchFromGitHub
|
2021-01-17 10:51:22 +07:00
|
|
|
, pkg-config
|
2023-09-02 21:24:44 -03:00
|
|
|
, wafHook
|
2020-12-10 14:09:03 +01:00
|
|
|
, python3
|
2020-01-17 09:11:58 +10:00
|
|
|
, asciidoc
|
|
|
|
|
, docbook_xml_dtd_45
|
|
|
|
|
, docbook_xsl
|
|
|
|
|
, libxml2
|
|
|
|
|
, libxslt
|
|
|
|
|
, curl
|
|
|
|
|
, libevent
|
2023-10-31 11:55:29 +10:00
|
|
|
, fetchpatch
|
2020-01-17 09:11:58 +10:00
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "saldl";
|
2021-04-06 15:48:23 +10:00
|
|
|
version = "41";
|
2020-01-17 09:11:58 +10:00
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = pname;
|
|
|
|
|
repo = pname;
|
|
|
|
|
rev = "v${version}";
|
2021-04-06 15:48:23 +10:00
|
|
|
sha256 = "sha256-PAX2MUyBWWU8kGkaeoCJteidgszh7ipwDJbrLXzVsn0=";
|
2020-01-17 09:11:58 +10:00
|
|
|
};
|
|
|
|
|
|
2023-10-31 11:55:29 +10:00
|
|
|
patches = [
|
|
|
|
|
(fetchpatch {
|
|
|
|
|
name = "update-waf-to-2-0-24.patch";
|
|
|
|
|
url = "https://github.com/saldl/saldl/commit/360c29d6c8cee5f7e608af42237928be429c3407.patch";
|
|
|
|
|
hash = "sha256-RBMnsUtd0BaZe/EXypDCK4gpUU0dgucWmOcJRn5/iTA=";
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
|
2020-01-17 09:11:58 +10:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 10:51:22 +07:00
|
|
|
pkg-config
|
2023-09-02 21:24:44 -03:00
|
|
|
wafHook
|
2020-12-10 14:09:03 +01:00
|
|
|
python3
|
2020-01-17 09:11:58 +10:00
|
|
|
asciidoc
|
|
|
|
|
docbook_xml_dtd_45
|
|
|
|
|
docbook_xsl
|
|
|
|
|
libxml2
|
|
|
|
|
libxslt
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [ curl libevent ];
|
|
|
|
|
|
2023-09-02 22:46:02 -03:00
|
|
|
wafConfigureFlags = [ "--saldl-version ${version}" "--no-werror" ];
|
2020-01-17 09:11:58 +10:00
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-01-17 09:11:58 +10:00
|
|
|
description = "CLI downloader optimized for speed and early preview";
|
|
|
|
|
homepage = "https://saldl.github.io";
|
2024-03-19 14:26:06 +02:00
|
|
|
license = licenses.agpl3Only;
|
2020-01-17 09:11:58 +10:00
|
|
|
maintainers = with maintainers; [ zowoq ];
|
|
|
|
|
platforms = platforms.all;
|
2024-02-11 03:19:15 +01:00
|
|
|
mainProgram = "saldl";
|
2020-01-17 09:11:58 +10:00
|
|
|
};
|
|
|
|
|
}
|