Skip to content

Commit

Permalink
weylus: Add GST plugins to GST_PLUGIN_PATH
Browse files Browse the repository at this point in the history
Redos NixOS#145051 after NixOS#161052.

Co-authored-by: Andy Chun @noneucat <[email protected]>
  • Loading branch information
zhaofengli and fx-chun committed Jun 21, 2022
1 parent 0a1ce91 commit feb95e7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkgs/applications/graphics/weylus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, stdenv
, rustPlatform
, fetchFromGitHub
, makeWrapper
, dbus
, ffmpeg
, x264
Expand All @@ -11,6 +12,7 @@
, libdrm
, pkg-config
, pango
, pipewire
, cmake
, autoconf
, libtool
Expand Down Expand Up @@ -62,6 +64,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [
cmake
nodePackages.typescript
makeWrapper
] ++ lib.optionals stdenv.isLinux [
pkg-config
autoconf
Expand All @@ -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
'';
Expand Down

0 comments on commit feb95e7

Please sign in to comment.