diff --git a/hosts/common/programs/gst-device-monitor.nix b/hosts/common/programs/gst-device-monitor.nix index e4166b29..72f24e8e 100644 --- a/hosts/common/programs/gst-device-monitor.nix +++ b/hosts/common/programs/gst-device-monitor.nix @@ -1,9 +1,22 @@ +# gst-device-monitor: gstreamer debugging tool. +# - `gst-device-monitor-1.0 Audio/Sink` #< show all audio sinks +# - `gst-device-monitor-1.0 Audio/Source` #< show all audio sources (microphones) +# - `gst-device-monitor-1.0 Video/Source` #< show all video sources (cameras) { pkgs, ... }: { sane.programs.gst-device-monitor = { - packageUnwrapped = pkgs.linkIntoOwnPackage pkgs.gst_all_1.gst-plugins-base [ + packageUnwrapped = (pkgs.linkIntoOwnPackage pkgs.gst_all_1.gst-plugins-base [ "bin/gst-device-monitor-1.0" "share/man/man1/gst-device-monitor-1.0.1.gz" - ]; + ]).overrideAttrs (base: { + # XXX the binaries need `GST_PLUGIN_SYSTEM_PATH_1_0` set to function, + # but nixpkgs doesn't set those (TODO: upstream this!) + nativeBuildInputs = (base.nativeBuildInputs or []) ++ [ + pkgs.wrapGAppsNoGuiHook + ]; + buildInputs = (base.buildInputs or []) ++ [ + pkgs.gst_all_1.gst-plugins-base + ]; + }); }; }