Merge pull request #238759 from lunik1/gifski-video

gifski: enable video support
This commit is contained in:
figsoda 2023-06-20 15:20:06 -04:00 committed by GitHub
commit 25d2daf317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
, fetchFromGitHub
, stdenv
, pkg-config
, ffmpeg
}:
rustPlatform.buildRustPackage rec {
@ -23,7 +24,16 @@ rustPlatform.buildRustPackage rec {
};
};
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
ffmpeg
];
buildFeatures = [ "video" ];
# error: the crate `gifski` is compiled with the panic strategy `abort` which is incompatible with this crate's strategy of `unwind`
doCheck = !stdenv.isDarwin;