anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / development / libraries / gstreamer / libav / default.nix
blob06cd16b05c275db77f51611717aec29f34f633fe
1 { stdenv
2 , lib
3 , fetchurl
4 , meson
5 , ninja
6 , pkg-config
7 , python3
8 , gstreamer
9 , gst-plugins-base
10 , gettext
11 , ffmpeg-headless
12 # Checks meson.is_cross_build(), so even canExecute isn't enough.
13 , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc
16 stdenv.mkDerivation rec {
17   pname = "gst-libav";
18   version = "1.24.7";
20   src = fetchurl {
21     url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
22     hash = "sha256-w+QXm6GDwtMQHt+H/3DdB+cox2al/uNObs3tdspYAt8=";
23   };
25   outputs = [ "out" "dev" ];
27   nativeBuildInputs = [
28     meson
29     ninja
30     gettext
31     pkg-config
32     python3
33   ] ++ lib.optionals enableDocumentation [
34     hotdoc
35   ];
37   buildInputs = [
38     gstreamer
39     gst-plugins-base
40     ffmpeg-headless
41   ];
43   mesonFlags = [
44     (lib.mesonEnable "doc" enableDocumentation)
45   ];
47   postPatch = ''
48     patchShebangs \
49       scripts/extract-release-date-from-doap-file.py
50   '';
52   meta = with lib; {
53     description = "FFmpeg plugin for GStreamer";
54     homepage = "https://gstreamer.freedesktop.org";
55     license = licenses.lgpl2Plus;
56     platforms = platforms.unix;
57     maintainers = [ ];
58   };