From 50ddf2e36adeff54f346b58ccd0e001c5ce71eab Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Tue, 26 May 2026 14:12:24 -0400 Subject: [PATCH] build-support/fetchsourcehut: remove assertMsg usage --- pkgs/build-support/fetchsourcehut/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/fetchsourcehut/default.nix b/pkgs/build-support/fetchsourcehut/default.nix index f22746a64f74..2433238aa698 100644 --- a/pkgs/build-support/fetchsourcehut/default.nix +++ b/pkgs/build-support/fetchsourcehut/default.nix @@ -28,9 +28,8 @@ makeOverridable ( }@args: assert ( - lib.assertMsg (lib.xor (tag == null) ( - rev == null - )) "fetchFromSourcehut requires one of either `rev` or `tag` to be provided (not both)." + lib.xor (tag == null) (rev == null) + || throw "fetchFromSourcehut requires one of either `rev` or `tag` to be provided (not both)." ); assert (