nixpkgs: nit: tweak fetchpatch source ordering to prefer the most upstreamed source
This commit is contained in:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user