evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / web / playwright / firefox.nix
blob0f404bee2899fc892912839178fe35323cf2e338
2   lib,
3   stdenv,
4   fetchzip,
5   firefox-bin,
6   suffix,
7   revision,
8   system,
9   throwSystem,
11 let
12   suffix' =
13     if lib.hasPrefix "linux" suffix then "ubuntu-22.04" + (lib.removePrefix "linux" suffix) else suffix;
15 stdenv.mkDerivation {
16   name = "playwright-firefox";
17   src = fetchzip {
18     url = "https://playwright.azureedge.net/builds/firefox/${revision}/firefox-${suffix'}.zip";
19     hash =
20       {
21         x86_64-linux = "sha256-Hd9LlSRLW51gDoFyszqvg46Q/sMizLRsVKAN9atbwsw=";
22         aarch64-linux = "sha256-SEXH3gLOfNjOcnNWQjQ5gaaow47veVs0BoTYSgXw+24=";
23       }
24       .${system} or throwSystem;
25   };
27   inherit (firefox-bin.unwrapped)
28     nativeBuildInputs
29     buildInputs
30     runtimeDependencies
31     appendRunpaths
32     patchelfFlags
33     ;
35   buildPhase = ''
36     mkdir -p $out/firefox
37     cp -R . $out/firefox
38   '';