From 74fd95a6349a70a0990cc0073eaadafa914edd0b Mon Sep 17 00:00:00 2001 From: lunik1 Date: Tue, 20 Jun 2023 14:14:00 +0100 Subject: [PATCH] gifski: enable video support --- pkgs/tools/graphics/gifski/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/graphics/gifski/default.nix b/pkgs/tools/graphics/gifski/default.nix index 1aa2eea10ab7..60a77af920ea 100644 --- a/pkgs/tools/graphics/gifski/default.nix +++ b/pkgs/tools/graphics/gifski/default.nix @@ -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;