nixpkgs: nit: tweak fetchpatch source ordering to prefer the most upstreamed source

This commit is contained in:
2024-09-29 15:14:41 +00:00
parent fa778dba76
commit b8824ed332

View File

@@ -15,12 +15,12 @@ let
url = if prUrl != null then
# prUrl takes precedence over any specific commit
"${prUrl}.diff?full_index=1"
else if saneCommit != null then
"https://git.uninsane.org/colin/nixpkgs/commit/${saneCommit}.diff"
else if nixpkgsCommit != null then
"https://github.com/NixOS/nixpkgs/commit/${nixpkgsCommit}.patch?full_index=1"
else
else if saneGhCommit != null then
"https://github.com/uninsane/nixpkgs/commit/${saneGhCommit}.patch?full_index=1"
else
"https://git.uninsane.org/colin/nixpkgs/commit/${saneCommit}.diff"
;
in fetchpatch2 (
{ inherit revert url; }