widevine-cdm: fix eval outside unsupported platforms

This commit is contained in:
Tristan Ross
2025-02-14 13:21:39 -08:00
parent 8c60d6b535
commit db9bc910a0
+12 -2
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; }