fetchDebianPatch
pkgs.fetchDebianPatch
Functor
Docs pulled from | This Revision | about 1 hour ago
No reference documentation found yet.
Contribute now!
Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.
Noogle detected
This is a Functor
Learn about functors
Implementation
The following is the current implementation of this function.
{
pname,
version,
debianRevision ? null,
area ? "main",
patch,
name ? patch,
hash,
}:
let
inherit (lib.strings) hasPrefix substring;
prefix = substring 0 (if hasPrefix "lib" pname then 4 else 1) pname;
versionString = if debianRevision == null then version else "${version}-${debianRevision}";
in
fetchpatch {
inherit name hash;
url =
"https://sources.debian.org/data/${area}/${prefix}/"
+ "${pname}/${versionString}/debian/patches/${patch}";
}