mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 13:24:29 +00:00
halloy: run under wayland, if available
Allows halloy to use it's wayland backend, if available.
This commit is contained in:
parent
bfa8b30043
commit
9cd71e54a3
@ -72,6 +72,15 @@ rustPlatform.buildRustPackage rec {
|
||||
})
|
||||
];
|
||||
|
||||
postFixup = lib.optional stdenv.isLinux (
|
||||
let
|
||||
rpathWayland = lib.makeLibraryPath [ wayland vulkan-loader libxkbcommon ];
|
||||
in
|
||||
''
|
||||
rpath=$(patchelf --print-rpath $out/bin/halloy)
|
||||
patchelf --set-rpath "$rpath:${rpathWayland}" $out/bin/halloy
|
||||
'');
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 assets/linux/org.squidowl.halloy.png $out/share/icons/hicolor/128x128/apps/org.squidowl.halloy.png
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user