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