about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorJared Baur <jaredbaur@fastmail.com>2024-01-26 18:49:13 -0800
committerJared Baur <jaredbaur@fastmail.com>2024-04-21 13:32:26 -0700
commit148f60fb5050797ac4dfdcf3477e5019c5eba621 (patch)
tree6e5b82f8af25363a6d4ccb485a5732a9e577602c /pkgs/applications
parent4854bac6d7efb373ab31457ca07bcb208456bff8 (diff)
greetd.wlgreet: add required libraries to runpath
Wlgreet dynamically loads a few libraries on startup. Without them, the
program will crash immediately on startup.
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/display-managers/greetd/wlgreet.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/applications/display-managers/greetd/wlgreet.nix b/pkgs/applications/display-managers/greetd/wlgreet.nix
index 803b61caa8bee..1026f3a61e779 100644
--- a/pkgs/applications/display-managers/greetd/wlgreet.nix
+++ b/pkgs/applications/display-managers/greetd/wlgreet.nix
@@ -1,6 +1,10 @@
 { lib
 , rustPlatform
 , fetchFromSourcehut
+, autoPatchelfHook
+, gcc-unwrapped
+, wayland
+, libxkbcommon
 }:
 
 rustPlatform.buildRustPackage rec {
@@ -16,6 +20,15 @@ rustPlatform.buildRustPackage rec {
 
   cargoHash = "sha256-1ugExUtrzqyd9dTlBHcc44UrtEfYrfUryuG79IkTv2Y=";
 
+  nativeBuildInputs = [ autoPatchelfHook ];
+  buildInputs = [ gcc-unwrapped ];
+
+  runtimeDependencies = map lib.getLib [
+    gcc-unwrapped
+    wayland
+    libxkbcommon
+  ];
+
   meta = with lib; {
     description = "Raw wayland greeter for greetd, to be run under sway or similar";
     mainProgram = "wlgreet";