Merge pull request #229532 from colemickens/pr-oculante

oculante: fix wayland
This commit is contained in:
figsoda 2023-05-03 13:16:57 -04:00 committed by GitHub
commit de82ed6569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,8 @@
, libXrandr
, libXi
, libGL
, libxkbcommon
, wayland
, stdenv
, gtk3
, darwin
@ -45,18 +47,21 @@ rustPlatform.buildRustPackage rec {
openssl
fontconfig
] ++ lib.optionals stdenv.isLinux [
libGL
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; {