oculante: fix wayland support

This commit is contained in:
Cole Mickens 2023-01-07 12:35:30 -08:00
parent 72453271bb
commit d4287637a5
No known key found for this signature in database
GPG Key ID: B475C2955744A019

View File

@ -11,6 +11,8 @@
, libXrandr
, libXi
, libGL
, libxkbcommon
, wayland
, stdenv
, gtk3
, darwin
@ -45,18 +47,22 @@ rustPlatform.buildRustPackage rec {
openssl
fontconfig
] ++ lib.optionals stdenv.isLinux [
libGL
libX11
libX11
libXcursor
libXi
libXrandr
libGL
gtk3
libxkbcommon
wayland
] ++ lib.optionals stdenv.isDarwin [
darwin.libobjc
];
postFixup = lib.optionalString stdenv.isLinux ''
patchelf $out/bin/oculante --add-rpath ${lib.makeLibraryPath [ libGL ]}
patchelf $out/bin/oculante --add-rpath ${lib.makeLibraryPath [ libxkbcommon libX11 ]}
'';
meta = with lib; {