widevine-cdm: fix eval outside unsupported platforms

This commit is contained in:
Tristan Ross 2025-02-14 12:55:22 -08:00
parent 8c60d6b535
commit db9bc910a0
No known key found for this signature in database
GPG Key ID: B09C422035669AF8

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; }