nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 wafHook,
7 python3,
8 asciidoc,
9 docbook_xml_dtd_45,
10 docbook_xsl,
11 libxml2,
12 libxslt,
13 curl,
14 libevent,
15 fetchpatch,
16}:
17
18stdenv.mkDerivation rec {
19 pname = "saldl";
20 version = "41";
21
22 src = fetchFromGitHub {
23 owner = "saldl";
24 repo = "saldl";
25 rev = "v${version}";
26 sha256 = "sha256-PAX2MUyBWWU8kGkaeoCJteidgszh7ipwDJbrLXzVsn0=";
27 };
28
29 patches = [
30 (fetchpatch {
31 name = "update-waf-to-2-0-24.patch";
32 url = "https://github.com/saldl/saldl/commit/360c29d6c8cee5f7e608af42237928be429c3407.patch";
33 hash = "sha256-RBMnsUtd0BaZe/EXypDCK4gpUU0dgucWmOcJRn5/iTA=";
34 })
35 ];
36
37 nativeBuildInputs = [
38 pkg-config
39 wafHook
40 python3
41 asciidoc
42 docbook_xml_dtd_45
43 docbook_xsl
44 libxml2
45 libxslt
46 ];
47
48 buildInputs = [
49 curl
50 libevent
51 ];
52
53 wafConfigureFlags = [
54 "--saldl-version ${version}"
55 "--no-werror"
56 ];
57
58 outputs = [
59 "out"
60 "man"
61 ];
62
63 meta = with lib; {
64 description = "CLI downloader optimized for speed and early preview";
65 homepage = "https://saldl.github.io";
66 license = licenses.agpl3Only;
67 maintainers = with maintainers; [ zowoq ];
68 platforms = platforms.all;
69 mainProgram = "saldl";
70 };
71}