mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 23:03:41 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, wafHook
|
|
, python3
|
|
, asciidoc
|
|
, docbook_xml_dtd_45
|
|
, docbook_xsl
|
|
, libxml2
|
|
, libxslt
|
|
, curl
|
|
, libevent
|
|
, fetchpatch
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "saldl";
|
|
version = "41";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-PAX2MUyBWWU8kGkaeoCJteidgszh7ipwDJbrLXzVsn0=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "update-waf-to-2-0-24.patch";
|
|
url = "https://github.com/saldl/saldl/commit/360c29d6c8cee5f7e608af42237928be429c3407.patch";
|
|
hash = "sha256-RBMnsUtd0BaZe/EXypDCK4gpUU0dgucWmOcJRn5/iTA=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wafHook
|
|
python3
|
|
asciidoc
|
|
docbook_xml_dtd_45
|
|
docbook_xsl
|
|
libxml2
|
|
libxslt
|
|
];
|
|
|
|
buildInputs = [ curl libevent ];
|
|
|
|
wafConfigureFlags = [ "--saldl-version ${version}" "--no-werror" ];
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
meta = with lib; {
|
|
description = "CLI downloader optimized for speed and early preview";
|
|
homepage = "https://saldl.github.io";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ zowoq ];
|
|
platforms = platforms.all;
|
|
mainProgram = "saldl";
|
|
};
|
|
}
|