diff --git a/pkgs/build-support/fetchgitiles/default.nix b/pkgs/build-support/fetchgitiles/default.nix index af30fa3da36a..66f162cfa3e5 100644 --- a/pkgs/build-support/fetchgitiles/default.nix +++ b/pkgs/build-support/fetchgitiles/default.nix @@ -14,9 +14,8 @@ lib.makeOverridable ( }@args: assert ( - lib.assertMsg (lib.xor (tag == null) ( - rev == null - )) "fetchFromGitiles requires one of either `rev` or `tag` to be provided (not both)." + lib.xor (tag == null) (rev == null) + || throw "fetchFromGitiles requires one of either `rev` or `tag` to be provided (not both)." ); let