3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #174434 from zhaofengli/weylus-sway

weylus: Add GST plugins to GST_PLUGIN_PATH, weylus: 0.11.4 -> unstable-2022-06-07
This commit is contained in:
Sandro 2022-07-05 09:54:29 +02:00 committed by GitHub
commit ab18f8f301
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
, stdenv , stdenv
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, makeWrapper
, dbus , dbus
, ffmpeg , ffmpeg
, x264 , x264
@ -11,6 +12,7 @@
, libdrm , libdrm
, pkg-config , pkg-config
, pango , pango
, pipewire
, cmake , cmake
, autoconf , autoconf
, libtool , libtool
@ -23,13 +25,13 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "weylus"; pname = "weylus";
version = "0.11.4"; version = "unstable-2022-06-07";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "H-M-H"; owner = "H-M-H";
repo = pname; repo = pname;
rev = "v${version}"; rev = "b169a6be2bf3e8d105273d92f032cca5438de53a";
sha256 = "0gq2czxvahww97j4i3k18np29zl6wx85f8253wn3ibqrpfnklz6l"; sha256 = "sha256-J9eVFIfmyBviVuT1MYKb5yoacbPqOAT3A8jahWv5qw8=";
}; };
buildInputs = [ buildInputs = [
@ -62,17 +64,27 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
nodePackages.typescript nodePackages.typescript
makeWrapper
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
pkg-config pkg-config
autoconf autoconf
libtool libtool
]; ];
cargoSha256 = "1pigmch0sy9ipsafd83b8q54xwqjxdaif363n1q8n46arq4v81j0"; cargoSha256 = "sha256-R46RSRdtfqi1PRQ0MaSIIqtj+Pr3yikm6NeMwwu1CSw=";
cargoBuildFlags = [ "--features=ffmpeg-system" ]; cargoBuildFlags = [ "--features=ffmpeg-system" ];
cargoTestFlags = [ "--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 = '' postInstall = ''
install -vDm755 weylus.desktop $out/share/applications/weylus.desktop install -vDm755 weylus.desktop $out/share/applications/weylus.desktop
''; '';