diff --git a/pkgs/build-support/fetchurl/tests.nix b/pkgs/build-support/fetchurl/tests.nix index c89368a6d209..0610aaf805a0 100644 --- a/pkgs/build-support/fetchurl/tests.nix +++ b/pkgs/build-support/fetchurl/tests.nix @@ -6,6 +6,7 @@ jq, moreutils, emptyFile, + hello, ... }: let @@ -138,4 +139,13 @@ in # have to fallback to fetching the previously-built derivation from # tarballs.nixos.org, which provides pre-built derivation outputs. }; + + urls-simple = testers.invalidateFetcherByDrvHash fetchurl { + name = "test-fetchurl-urls-simple"; + urls = [ + "http://broken" + hello.src.resolvedUrl + ]; + hash = hello.src.outputHash; + }; }