gst-meet/shell.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

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
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"];
}