biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / networking / gnome-network-displays / default.nix
blob413b1f3b3dafaee92f87e846568a075c37a9adfa
1 { lib, stdenv
2 , fetchurl
3 , fetchpatch
4 # native
5 , meson
6 , ninja
7 , pkg-config
8 , gettext
9 , desktop-file-utils
10 , appstream-glib
11 , wrapGAppsHook4
12 , python3
13 # Not native
14 , gst_all_1
15 , gsettings-desktop-schemas
16 , gtk4
17 , avahi
18 , glib
19 , networkmanager
20 , json-glib
21 , libadwaita
22 , libportal-gtk4
23 , libpulseaudio
24 , libsoup_3
25 , pipewire
26 , protobufc
29 stdenv.mkDerivation (finalAttrs: {
30   pname = "gnome-network-displays";
31   version = "0.92.1";
33   src = fetchurl {
34     url = "mirror://gnome/sources/${finalAttrs.pname}/${lib.versions.majorMinor finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.xz";
35     sha256 = "sha256-aoH9SpD7AfM6c6moMCCuQ1igkcrKgqAf1iLlpuXtaic=";
36   };
38   nativeBuildInputs = [
39     meson
40     ninja
41     pkg-config
42     gettext
43     desktop-file-utils
44     appstream-glib
45     wrapGAppsHook4
46     python3
47   ];
49   buildInputs = [
50     avahi
51     gtk4
52     glib
53     gsettings-desktop-schemas
54     gst_all_1.gstreamer
55     gst_all_1.gst-plugins-base
56     gst_all_1.gst-plugins-good
57     gst_all_1.gst-plugins-bad
58     gst_all_1.gst-plugins-ugly
59     gst_all_1.gst-rtsp-server
60     gst_all_1.gst-vaapi
61     pipewire
62     networkmanager
63     json-glib
64     libadwaita
65     libportal-gtk4
66     libpulseaudio
67     libsoup_3
68     protobufc
69   ];
71   /* Without this flag, we get this include error:
73   /nix/store/...-gst-rtsp-server-1.22.8-dev/include/gstreamer-1.0/gst/rtsp-server/rtsp-media-factory.h:21:10: fatal error: gst/rtsp/gstrtspurl.h: No such file or directory
74   21 | #include <gst/rtsp/gstrtspurl.h>
76   Hence, this is not necessarily an upstream issue, but could be something
77   wrong with how our gst_all_1 depend on each other.
78   */
79   CFLAGS = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
81   preConfigure = ''
82     patchShebangs ./build-aux/meson/postinstall.py
83   '';
85   meta = with lib; {
86     homepage = "https://gitlab.gnome.org/GNOME/gnome-network-displays";
87     description = "Miracast implementation for GNOME";
88     maintainers = with maintainers; [ doronbehar ];
89     license = licenses.gpl3Plus;
90     platforms = platforms.linux;
91     mainProgram = "gnome-network-displays";
92   };