blob: c1230484f82b0e3e1df6f8f79f09df3988a75887 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{ lib, fetchpatch }:
lib.makeOverridable (
{ pname, version, debianRevision ? null, name, hash, area ? "main" }:
let versionString =
if debianRevision == null then version else "${version}-${debianRevision}";
in fetchpatch {
url =
"https://sources.debian.org/data/${area}/${builtins.substring 0 1 pname}/"
+ "${pname}/${versionString}/debian/patches/${name}.patch";
inherit hash;
}
)
|