nixpkgs/pkgs/tools/networking/saldl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-01-16 23:11:58 +00:00
, fetchFromGitHub
2021-01-17 03:51:22 +00:00
, pkg-config
2023-09-03 00:24:44 +00:00
, wafHook
2020-12-10 13:09:03 +00:00
, python3
2020-01-16 23:11:58 +00:00
, asciidoc
, docbook_xml_dtd_45
, docbook_xsl
, libxml2
, libxslt
, curl
, libevent
2023-10-31 01:55:29 +00:00
, fetchpatch
2020-01-16 23:11:58 +00:00
}:
stdenv.mkDerivation rec {
pname = "saldl";
version = "41";
2020-01-16 23:11:58 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-PAX2MUyBWWU8kGkaeoCJteidgszh7ipwDJbrLXzVsn0=";
2020-01-16 23:11:58 +00:00
};
2023-10-31 01:55:29 +00: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-16 23:11:58 +00:00
nativeBuildInputs = [
2021-01-17 03:51:22 +00:00
pkg-config
2023-09-03 00:24:44 +00:00
wafHook
2020-12-10 13:09:03 +00:00
python3
2020-01-16 23:11:58 +00:00
asciidoc
docbook_xml_dtd_45
docbook_xsl
libxml2
libxslt
];
buildInputs = [ curl libevent ];
wafConfigureFlags = [ "--saldl-version ${version}" "--no-werror" ];
2020-01-16 23:11:58 +00:00
outputs = [ "out" "man" ];
meta = with lib; {
2020-01-16 23:11:58 +00:00
description = "CLI downloader optimized for speed and early preview";
homepage = "https://saldl.github.io";
2024-03-19 12:26:06 +00:00
license = licenses.agpl3Only;
2020-01-16 23:11:58 +00:00
maintainers = with maintainers; [ zowoq ];
platforms = platforms.all;
2024-02-11 02:19:15 +00:00
mainProgram = "saldl";
2020-01-16 23:11:58 +00:00
};
}