mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 11:17:17 +00:00
20 lines
626 B
Nix
20 lines
626 B
Nix
let
|
|
lacrosVersion = "120.0.6098.0";
|
|
in
|
|
{pkgs, ...}:
|
|
pkgs.stdenv.mkDerivation {
|
|
name = "widevine";
|
|
version = "";
|
|
buildInputs = with pkgs; [curl widevine-installer];
|
|
|
|
src = pkgs.fetchurl {
|
|
urls = ["https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/chromeos-lacros-arm64-squash-zstd-${lacrosVersion}"];
|
|
hash = "sha256-OKV8w5da9oZ1oSGbADVPCIkP9Y0MVLaQ3PXS3ZBLFXY=";
|
|
};
|
|
|
|
unpackPhase = "true";
|
|
installPhase = ''
|
|
mkdir -p "$out/"
|
|
COPY_CONFIGS=0 INSTALL_BASE="$out" DISTFILES_BASE="file://$src" widevine-installer
|
|
'';
|
|
}
|