diff --git a/pkgs/build-support/appimage/default.nix b/pkgs/build-support/appimage/default.nix index 2ca83c4fe503..9e6931d4d788 100644 --- a/pkgs/build-support/appimage/default.nix +++ b/pkgs/build-support/appimage/default.nix @@ -39,9 +39,9 @@ rec { src, ... }: - assert lib.assertMsg ( + assert name == null - ) "The `name` argument is deprecated. Use `pname` and `version` instead to construct the name."; + || throw "The `name` argument is deprecated. Use `pname` and `version` instead to construct the name."; pkgs.runCommand "${pname}-${version}-extracted" { nativeBuildInputs = [ appimage-exec ];