-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathfcast-receiver.nix
More file actions
98 lines (91 loc) · 1.59 KB
/
Copy pathfcast-receiver.nix
File metadata and controls
98 lines (91 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
stdenv,
lib,
rustPlatform,
fetchFromGitLab,
wrapGAppsHook3,
xorg,
fontconfig,
alsa-lib,
libclang,
libpulseaudio,
glib,
openssl,
libnice,
freetype,
vulkan-loader,
pipewire,
libxkbcommon,
wayland,
gst_all_1,
pkg-config,
libGL,
dav1d,
libheif,
shaderc,
}:
let
localSrc = ../../..;
in
rustPlatform.buildRustPackage rec {
pname = "fcast-receiver";
version = "0.0.1";
buildAndTestSubdir = "receivers/desktop";
doCheck = false;
src = localSrc;
cargoHash = "sha256-ytRHSJeXyojRYB5WSf3T58x4yh4S5wvcSAcZMc3ghZc=";
nativeBuildInputs = [
pkg-config
rustPlatform.cargoSetupHook
wrapGAppsHook3
];
buildInputs = [
libGL
libxkbcommon
wayland
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
xorg.libxcb
fontconfig
alsa-lib
libclang
libpulseaudio
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-plugins-rs
gst_all_1.gst-libav
glib
openssl
libnice
fontconfig
freetype
pipewire
dav1d
libheif
shaderc
];
postInstall = ''
mv $out/bin/desktop-receiver $out/bin/fcast-receiver
wrapProgram $out/bin/fcast-receiver \
--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [
libGL
fontconfig
libxkbcommon
xorg.libX11
xorg.libxcb
wayland
vulkan-loader
]
}
'';
meta = {
license = lib.licenses.gpl3Only;
mainProgram = "fcast-receiver";
};
}