From 317fbe5e1a29c7ec3d11744d78637c424aa9d3d0 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Tue, 26 May 2026 14:25:07 -0400 Subject: [PATCH] build-support/fetchpatch: remove throwIfNot usage --- pkgs/build-support/fetchpatch/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/build-support/fetchpatch/default.nix b/pkgs/build-support/fetchpatch/default.nix index aae62b688739..b350a0a809fa 100644 --- a/pkgs/build-support/fetchpatch/default.nix +++ b/pkgs/build-support/fetchpatch/default.nix @@ -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 = ''