build-support/fetchpatch: remove throwIfNot usage

This commit is contained in:
Eman Resu
2026-05-26 14:25:07 -04:00
parent 39e9827be7
commit 317fbe5e1a
+4 -4
View File
@@ -38,10 +38,10 @@ in
let
inherit (args') stripLen extraPrefix;
in
lib.throwIfNot (excludes == [ ] || includes == [ ])
"fetchpatch: cannot use excludes and includes simultaneously"
fetchurl
(
if excludes != [ ] && includes != [ ] then
throw "fetchpatch: cannot use excludes and includes simultaneously"
else
fetchurl (
{
nativeBuildInputs = [ patchutils ] ++ nativeBuildInputs;
postFetch = ''