From 94b8710342f7a83739315c6e45be5070a32e6748 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Wed, 25 May 2022 00:20:58 -0700 Subject: [PATCH] weylus: Add GST plugins to GST_PLUGIN_PATH Redos #145051 after #161052. Co-authored-by: Andy Chun @noneucat --- pkgs/applications/graphics/weylus/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/applications/graphics/weylus/default.nix b/pkgs/applications/graphics/weylus/default.nix index 7965f8241253..a6b104aacf69 100644 --- a/pkgs/applications/graphics/weylus/default.nix +++ b/pkgs/applications/graphics/weylus/default.nix @@ -2,6 +2,7 @@ , stdenv , rustPlatform , fetchFromGitHub +, makeWrapper , dbus , ffmpeg , x264 @@ -11,6 +12,7 @@ , libdrm , pkg-config , pango +, pipewire , cmake , autoconf , libtool @@ -62,6 +64,7 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ cmake nodePackages.typescript + makeWrapper ] ++ lib.optionals stdenv.isLinux [ pkg-config autoconf @@ -73,6 +76,15 @@ rustPlatform.buildRustPackage rec { cargoBuildFlags = [ "--features=ffmpeg-system" ]; cargoTestFlags = [ "--features=ffmpeg-system" ]; + postFixup = let + GST_PLUGIN_PATH = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [ + gst_all_1.gst-plugins-base + pipewire + ]; + in lib.optionalString stdenv.isLinux '' + wrapProgram $out/bin/weylus --prefix GST_PLUGIN_PATH : ${GST_PLUGIN_PATH} + ''; + postInstall = '' install -vDm755 weylus.desktop $out/share/applications/weylus.desktop '';