Skip to content

Commit

Permalink
cosmic-settings,cosmic-greeter: add env variables for xkb-data paths (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
man0lis authored Sep 14, 2024
1 parent 5683913 commit ea50ed0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/cosmic-greeter/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
, stdenv
, udev
, nix-update-script
, xkeyboard_config
}:

rustPlatform.buildRustPackage {
Expand Down Expand Up @@ -67,6 +68,11 @@ rustPlatform.buildRustPackage {
substituteInPlace src/greeter.rs --replace-fail '/usr/bin/env' '${lib.getExe' coreutils "env"}'
'';

postInstall = ''
libcosmicAppWrapperArgs+=(--set X11_BASE_RULES_XML ${xkeyboard_config}/share/X11/xkb/rules/base.xml)
libcosmicAppWrapperArgs+=(--set X11_EXTRA_RULES_XML ${xkeyboard_config}/share/X11/xkb/rules/base.extras.xml)
'';

passthru.updateScript = nix-update-script {
extraArgs = [ "--version-regex" "epoch-(.*)" ];
};
Expand Down
3 changes: 3 additions & 0 deletions pkgs/cosmic-settings/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
, udev
, util-linux
, nix-update-script
, xkeyboard_config
}:

let
Expand Down Expand Up @@ -76,6 +77,8 @@ rustPlatform.buildRustPackage {

postInstall = ''
libcosmicAppWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ cosmic-randr ]})
libcosmicAppWrapperArgs+=(--set X11_BASE_RULES_XML ${xkeyboard_config}/share/X11/xkb/rules/base.xml)
libcosmicAppWrapperArgs+=(--set X11_EXTRA_RULES_XML ${xkeyboard_config}/share/X11/xkb/rules/base.extras.xml)
'';

passthru.updateScript = nix-update-script {
Expand Down

0 comments on commit ea50ed0

Please sign in to comment.