nixpkgs/pkgs/applications/networking/gnome-network-displays/default.nix

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

81 lines
1.8 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-09-02 06:27:21 +00:00
, fetchurl
, fetchpatch
# native
, meson
, ninja
, pkg-config
, gettext
, desktop-file-utils
, appstream-glib
, wrapGAppsHook
, python3
# Not native
, gst_all_1
, gsettings-desktop-schemas
, gtk3
, glib
, networkmanager
, libpulseaudio
, pipewire
2020-09-02 06:27:21 +00:00
}:
stdenv.mkDerivation rec {
pname = "gnome-network-displays";
version = "0.90.5";
2020-09-02 06:27:21 +00:00
src = fetchurl {
2021-01-15 13:21:58 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "sha256-2SBVQK4fJeK8Y2UrrL0g5vQIerDdGE1nhFc6ke4oIpI=";
2020-09-02 06:27:21 +00:00
};
patches = [
# Undeclared dependency on gio-unix-2.0, see:
# https://github.com/NixOS/nixpkgs/issues/36468 and
# https://gitlab.gnome.org/GNOME/gnome-network-displays/-/merge_requests/147
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gnome-network-displays/-/commit/ef3f3ff565acd8238da46de604a1e750d4f02f07.diff";
sha256 = "1ljiwgqia6am4lansg70qnwkch9mp1fr6bga98s5fwyiaw6b6f4p";
})
];
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
desktop-file-utils
appstream-glib
wrapGAppsHook
python3
];
buildInputs = [
gtk3
glib
gsettings-desktop-schemas
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gst-rtsp-server
gst_all_1.gst-vaapi
pipewire
2020-09-02 06:27:21 +00:00
networkmanager
libpulseaudio
];
preConfigure = ''
patchShebangs ./build-aux/meson/postinstall.py
'';
meta = with lib; {
2020-09-02 06:27:21 +00:00
homepage = "https://gitlab.gnome.org/GNOME/gnome-network-displays";
description = "Miracast implementation for GNOME";
maintainers = with maintainers; [ doronbehar ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}