mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
Merge pull request #138869 from Artturin/ffetchertests
This commit is contained in:
commit
b31618c72d
10
pkgs/build-support/fetchfirefoxaddon/tests.nix
Normal file
10
pkgs/build-support/fetchfirefoxaddon/tests.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{ invalidateFetcherByDrvHash, fetchFirefoxAddon, ... }:
|
||||
|
||||
{
|
||||
simple = invalidateFetcherByDrvHash fetchFirefoxAddon {
|
||||
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=";
|
||||
};
|
||||
}
|
@ -510,7 +510,10 @@ with pkgs;
|
||||
|
||||
fetchhg = callPackage ../build-support/fetchhg { };
|
||||
|
||||
fetchFirefoxAddon = callPackage ../build-support/fetchfirefoxaddon {};
|
||||
fetchFirefoxAddon = callPackage ../build-support/fetchfirefoxaddon { }
|
||||
// {
|
||||
tests = callPackages ../build-support/fetchfirefoxaddon/tests.nix { };
|
||||
};
|
||||
|
||||
# `fetchurl' downloads a file from the network.
|
||||
fetchurl = if stdenv.buildPlatform != stdenv.hostPlatform
|
||||
|
Loading…
Reference in New Issue
Block a user