-
Notifications
You must be signed in to change notification settings - Fork 25
/
shell.nix
43 lines (42 loc) · 1.13 KB
/
shell.nix
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
with import <nixpkgs> {};
let
libnice-patched = libnice.overrideAttrs(old: rec {
buildInputs = [
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
openssl
];
outputs = [ "bin" "out" "dev" ];
mesonFlags = old.mesonFlags ++ ["-Dgupnp=disabled" "-Dgtk_doc=disabled"];
meta.platforms = lib.platforms.unix;
});
gst-plugins-bad-patched = gst_all_1.gst-plugins-bad.override {
faacSupport = true;
};
gst-plugins-ugly-patched = gst_all_1.gst-plugins-ugly.overrideAttrs(old: rec {
buildInputs = lib.lists.subtractLists [a52dec] old.buildInputs;
mesonFlags = old.mesonFlags ++ ["-Da52dec=disabled"];
});
in
mkShell {
name = "gst-meet";
buildInputs = [
cargo
pkg-config
git
cacert
openssl
glib
glib-networking
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst-plugins-bad-patched
gst-plugins-ugly-patched
libnice-patched
] ++ (if stdenv.isDarwin then [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.Security
] else []);
GIO_EXTRA_MODULES = ["${pkgs.glib-networking.out}/lib/gio/modules"];
}