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

56 lines
1.0 KiB
Nix
Raw Normal View History

2019-10-02 18:04:06 +01:00
{ stdenv
, lib
, fetchurl
, meson
, ninja
, pkg-config
2019-10-02 18:04:06 +01:00
, python3
, gst-plugins-base
, gettext
, libav
2013-12-23 15:36:37 +00: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 15:36:37 +00:00
stdenv.mkDerivation rec {
pname = "gst-libav";
2020-12-07 01:15:03 +00:00
version = "1.18.2";
2013-12-23 15:36:37 +00:00
src = fetchurl {
2019-10-02 17:59:16 +01:00
url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
2020-12-07 01:15:03 +00:00
sha256 = "0jbzams9ggk3sq9ywv4gsl9rghyn203l2582m6l5c1sz9ka9m5in";
2013-12-23 15:36:37 +00:00
};
outputs = [ "out" "dev" ];
2016-04-24 13:39:30 +01:00
2019-10-02 18:04:06 +01:00
nativeBuildInputs = [
meson
ninja
gettext
pkg-config
2019-10-02 18:04:06 +01:00
python3
];
2019-10-02 18:04:06 +01:00
buildInputs = [
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 18:04:06 +01:00
meta = with lib; {
description = "FFmpeg/libav plugin for GStreamer";
homepage = "https://gstreamer.freedesktop.org";
license = licenses.lgpl2Plus;
platforms = platforms.unix;
};
2013-12-23 15:36:37 +00:00
}