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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
773 B
Nix
Raw Normal View History

{ testers, fetchFirefoxAddon, fetchurl, ... }:
2021-09-22 02:26:31 +00:00
{
simple = testers.invalidateFetcherByDrvHash fetchFirefoxAddon {
2021-09-22 02:26:31 +00:00
name = "image-search-options";
# Chosen because its only 147KB
url = "https://addons.mozilla.org/firefox/downloads/file/3059971/image_search_options-3.0.12-fx.xpi";
sha256 = "sha256-H73YWX/DKxvhEwKpWOo7orAQ7c/rQywpljeyxYxv0Gg=";
};
2022-12-18 00:39:44 +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=";
};
in
testers.invalidateFetcherByDrvHash fetchFirefoxAddon {
name = "image-search-options";
src = image-search-options;
};
2021-09-22 02:26:31 +00:00
}