Unverified Commit 7e796bc3 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

widevine-cdm: fix eval outside unsupported platforms (#382139)

parents fa36fe58 db9bc910
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
{ stdenv, callPackage }:
{
  lib,
  stdenv,
  callPackage,
}:

callPackage (./. + "/${stdenv.hostPlatform.system}.nix") { inherit stdenv; }
let
  targets = lib.genAttrs [
    "aarch64-linux"
    "x86_64-linux"
  ] (name: ./. + "/${name}.nix");
in
callPackage (targets."${stdenv.hostPlatform.system}" or targets.x86_64-linux) { inherit stdenv; }