widevine-cdm: fix eval outside unsupported platforms

(cherry picked from commit db9bc910a0)
This commit is contained in:
Tristan Ross
2025-02-14 12:55:22 -08:00
committed by Bjørn Forsman
parent 74c3bb1f9b
commit a3c295824a

View File

@@ -1,3 +1,13 @@
{ 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; }