core/pkgs/build-support/fetchfirefoxaddon/tests.nix

22 lines
763 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ testers, fetchFirefoxAddon, fetchurl, ... }:
{
simple = testers.invalidateFetcherByDrvHash fetchFirefoxAddon {
name = "image-search-options";
# Chosen because its only 147KB
2024-05-13 21:24:10 +00:00
url =
"https://addons.mozilla.org/firefox/downloads/file/3059971/image_search_options-3.0.12-fx.xpi";
2024-05-02 00:46:19 +00:00
sha256 = "sha256-H73YWX/DKxvhEwKpWOo7orAQ7c/rQywpljeyxYxv0Gg=";
};
2024-05-13 21:24:10 +00:00
overridden-source = let
image-search-options = fetchurl {
url =
"https://addons.mozilla.org/firefox/downloads/file/3059971/image_search_options-3.0.12-fx.xpi";
sha256 = "sha256-H73YWX/DKxvhEwKpWOo7orAQ7c/rQywpljeyxYxv0Gg=";
2024-05-02 00:46:19 +00:00
};
2024-05-13 21:24:10 +00:00
in testers.invalidateFetcherByDrvHash fetchFirefoxAddon {
name = "image-search-options";
src = image-search-options;
};
2024-05-02 00:46:19 +00:00
}