Skip to content

Commit 300dc81

Browse files
al3xtjamesJohnRTitor
authored andcommitted
svt-av1-psy: limit x86_64-specific dependencies
Upstream SVT-AV1 deprecated the USE_EXTERNAL_CPUINFO option and replaced it with USE_CPUINFO, which defaults to AUTO [1]. SVT-AV1 will use only use the bundled version of cpuinfo if it cannot find the system version. The use of cpuinfo was also disabled for aarch64 [2], so limit its use to x86_64. [1]: https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/54ac9322e79508e6ef3474d77f8e32e4ca49b923 [2]: https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/ec699561b51f3204e2df6d4c2578eea1f7bd52be
1 parent d82f800 commit 300dc81

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

pkgs/by-name/sv/svt-av1-psy/package.nix

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,26 @@ stdenv.mkDerivation (finalAttrs: {
3232
)
3333
)
3434
{
35-
USE_EXTERNAL_CPUINFO = true;
3635
LIBDOVI_FOUND = true;
3736
LIBHDR10PLUS_RS_FOUND = true;
3837
};
3938

40-
nativeBuildInputs = [
41-
cmake
42-
nasm
43-
];
39+
nativeBuildInputs =
40+
[
41+
cmake
42+
]
43+
++ lib.optionals stdenv.hostPlatform.isx86_64 [
44+
nasm
45+
];
4446

45-
buildInputs = [
46-
cpuinfo
47-
libdovi
48-
hdr10plus
49-
];
47+
buildInputs =
48+
[
49+
libdovi
50+
hdr10plus
51+
]
52+
++ lib.optionals stdenv.hostPlatform.isx86_64 [
53+
cpuinfo
54+
];
5055

5156
passthru.updateScript = unstableGitUpdater {
5257
branch = "master";

0 commit comments

Comments
 (0)