onagre: fix missing library files error

Thanks to the following comment, onagre is properly running without
issues.

2b6b451c39 (r80485137)
This commit is contained in:
Gabriel Arazas 2022-08-06 23:52:14 +08:00
parent 49b1d34a06
commit e33d2c0234

View File

@ -8,6 +8,10 @@
, expat
, wayland
, libX11
, libGL
, libxkbcommon
, vulkan-loader
, pop-launcher
}:
rustPlatform.buildRustPackage rec {
@ -25,9 +29,11 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ freetype expat ];
buildInputs = [ freetype expat wayland libX11 libGL libxkbcommon vulkan-loader ];
propagatedBuildInputs = [ wayland libX11 ];
postFixup = ''
patchelf --set-rpath ${lib.makeLibraryPath buildInputs} $out/bin/onagre
'';
meta = with lib; {
homepage = "https://github.com/oknozor/onagre";