nixpkgs/pkgs/development/libraries/gstreamer/libav/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.1 KiB
Nix
Raw Normal View History

2019-10-02 19:04:06 +02:00
{ stdenv
, lib
, fetchurl
, meson
, ninja
, pkg-config
2019-10-02 19:04:06 +02:00
, python3
2022-02-05 00:36:03 +01:00
, gstreamer
2019-10-02 19:04:06 +02:00
, gst-plugins-base
, gettext
, libav
2013-12-23 16:36:37 +01:00
}:
# Note that since gst-libav-1.6, libav is actually ffmpeg. See
# https://gstreamer.freedesktop.org/releases/1.6/ for more info.
2013-12-23 16:36:37 +01:00
stdenv.mkDerivation rec {
pname = "gst-libav";
2022-02-05 00:36:03 +01:00
version = "1.20.0";
2013-12-23 16:36:37 +01:00
src = fetchurl {
url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
2022-02-05 00:36:03 +01:00
sha256 = "sha256-Xu5e2NUIKjG1AESOQVNcci7jDNX4Ik8ymCu6ui7t7xc=";
2013-12-23 16:36:37 +01:00
};
outputs = [ "out" "dev" ];
2016-04-24 14:39:30 +02:00
2019-10-02 19:04:06 +02:00
nativeBuildInputs = [
meson
ninja
gettext
pkg-config
2019-10-02 19:04:06 +02:00
python3
];
2019-10-02 19:04:06 +02:00
buildInputs = [
2022-02-05 00:36:03 +01:00
gstreamer
2019-10-02 19:04:06 +02:00
gst-plugins-base
libav
];
mesonFlags = [
"-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
];
postPatch = ''
patchShebangs \
scripts/extract-release-date-from-doap-file.py
'';
2019-10-02 19:04:06 +02:00
meta = with lib; {
description = "FFmpeg/libav plugin for GStreamer";
homepage = "https://gstreamer.freedesktop.org";
license = licenses.lgpl2Plus;
platforms = platforms.unix;
};
2013-12-23 16:36:37 +01:00
}