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

This commit is contained in:
Gaétan Lepage
2025-02-14 22:30:34 +01:00
committed by GitHub
+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; }