tplay: use rustPlatform.bindgenHook

This commit is contained in:
Nick Cao 2024-04-16 20:30:10 -04:00
parent 83bdb045f6
commit 786428bb5a
No known key found for this signature in database

View file

@ -29,7 +29,13 @@ rustPlatform.buildRustPackage rec {
"--skip=pipeline::runner::tests::test_time_to_send_next_frame" "--skip=pipeline::runner::tests::test_time_to_send_next_frame"
]; ];
nativeBuildInputs = [ pkg-config clang ffmpeg ]; nativeBuildInputs = [
rustPlatform.bindgenHook
pkg-config
clang
ffmpeg
];
buildInputs = [ buildInputs = [
openssl.dev openssl.dev
alsa-lib.dev alsa-lib.dev
@ -38,8 +44,6 @@ rustPlatform.buildRustPackage rec {
opencv opencv
]; ];
env.LIBCLANG_PATH = "${libclang.lib}/lib";
meta = { meta = {
description = "Terminal Media Player"; description = "Terminal Media Player";
homepage = "https://github.com/maxcurzi/tplay"; homepage = "https://github.com/maxcurzi/tplay";