From 208a03de9303819907556e3ac0866a449af9dcbe Mon Sep 17 00:00:00 2001 From: Paul S Date: Tue, 17 May 2022 16:12:54 +0100 Subject: [PATCH] vivaldi-widevine: switch to fetchzip hopefully it makes the hash not change sometimes --- .../networking/browsers/vivaldi/widevine.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/networking/browsers/vivaldi/widevine.nix b/pkgs/applications/networking/browsers/vivaldi/widevine.nix index 23205aa6846e..740e325fca4e 100644 --- a/pkgs/applications/networking/browsers/vivaldi/widevine.nix +++ b/pkgs/applications/networking/browsers/vivaldi/widevine.nix @@ -1,22 +1,16 @@ -{ lib, stdenv, fetchurl -, unzip +{ lib, stdenv, fetchzip }: stdenv.mkDerivation rec { pname = "widevine"; version = "4.10.2449.0"; - src = fetchurl { + src = fetchzip { url = "https://dl.google.com/widevine-cdm/${version}-linux-x64.zip"; - sha256 = "sha256-XZuXK3NCfqbaQ1tuMOXj/U4yJC18futqo1WjuMqMrRA="; + sha256 = "sha256-f2kAkP+s3fB+krEZsiujEoI4oznkzSyaIB/CRJZWlXE="; + stripRoot = false; }; - nativeBuildInputs = [ unzip ]; - - unpackPhase = '' - unzip $src - ''; - installPhase = '' install -vD manifest.json $out/share/google/chrome/WidevineCdm/manifest.json install -vD LICENSE.txt $out/share/google/chrome/WidevineCdm/LICENSE.txt