From e33d2c0234a88caf20c148be41b743e68610977f Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 6 Aug 2022 23:52:14 +0800 Subject: [PATCH] onagre: fix missing library files error Thanks to the following comment, onagre is properly running without issues. https://github.com/foo-dogsquared/nixos-config/commit/2b6b451c390b9e40576ccd9cfb65f87f98719dc8#r80485137 --- pkgs/onagre/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/onagre/default.nix b/pkgs/onagre/default.nix index a2983d28..018ef914 100644 --- a/pkgs/onagre/default.nix +++ b/pkgs/onagre/default.nix @@ -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";