mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
build-support/fetchsourcehut: remove assertMsg usage
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user