lol
1{ lib, stdenv
2, fetchurl
3, meson
4, ninja
5, pkg-config
6, python3
7, bash-completion
8, gst-plugins-base
9, gst-plugins-bad
10, gst-devtools
11, libxml2
12, flex
13, gettext
14, gobject-introspection
15}:
16
17stdenv.mkDerivation rec {
18 pname = "gst-editing-services";
19 version = "1.20.3";
20
21 outputs = [
22 "out"
23 "dev"
24 # "devdoc" # disabled until `hotdoc` is packaged in nixpkgs
25 ];
26
27 src = fetchurl {
28 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
29 sha256 = "sha256-X9iW3mn74kQh62sP+NL4tMPLo/MCXOrNMCFy85qKuqI=";
30 };
31
32 nativeBuildInputs = [
33 meson
34 ninja
35 pkg-config
36 gettext
37 gobject-introspection
38 gst-devtools
39 python3
40 flex
41
42 # documentation
43 # TODO add hotdoc here
44 ];
45
46 buildInputs = [
47 bash-completion
48 libxml2
49 gobject-introspection
50 ];
51
52 propagatedBuildInputs = [
53 gst-plugins-base
54 gst-plugins-bad
55 ];
56
57 mesonFlags = [
58 "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
59 ];
60
61 postPatch = ''
62 patchShebangs \
63 scripts/extract-release-date-from-doap-file.py
64 '';
65
66 meta = with lib; {
67 description = "Library for creation of audio/video non-linear editors";
68 homepage = "https://gstreamer.freedesktop.org";
69 license = licenses.lgpl2Plus;
70 platforms = platforms.unix;
71 };
72}