weylus: Add GST plugins to GST_PLUGIN_PATH
Redos #145051 after #161052. Co-authored-by: Andy Chun @noneucat <andy@lolc.at>
This commit is contained in:
parent
58585adbcd
commit
94b8710342
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue