diff options
author | Jared Baur <jaredbaur@fastmail.com> | 2024-01-26 18:49:13 -0800 |
---|---|---|
committer | Jared Baur <jaredbaur@fastmail.com> | 2024-04-21 13:32:26 -0700 |
commit | 148f60fb5050797ac4dfdcf3477e5019c5eba621 (patch) | |
tree | 6e5b82f8af25363a6d4ccb485a5732a9e577602c /pkgs/applications | |
parent | 4854bac6d7efb373ab31457ca07bcb208456bff8 (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.nix | 13 |
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"; |