Skip to content

Commit

Permalink
nix: Add deps for keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Jun 3, 2024
1 parent f914225 commit 839fede
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .direnv/flake-profile
1 change: 1 addition & 0 deletions .direnv/flake-profile-22-link
1 change: 0 additions & 1 deletion .direnv/flake-profile-5-link

This file was deleted.

7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,15 @@
# (rust-bin.selectLatestNightlyWith
# (toolchain: toolchain.default))
rust-bin.nightly."2024-05-10".default
llvmPackages.clang
libxkbcommon
glib
pkg-config
xorg.setxkbmap
libclang
];
LD_LIBRARY_PATH = "${pkgs.glib}/lib";
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
};

packages =
Expand All @@ -50,3 +56,4 @@
};
};
}

11 changes: 11 additions & 0 deletions nix/keyboard.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
, dbus
, xorg
, libxkbcommon
, libclang
, llvmPackages
, pulseaudio
, lib
, ...
Expand All @@ -31,6 +33,8 @@ rustPlatform.buildRustPackage rec {
xorg.setxkbmap
pulseaudio
libxkbcommon
llvmPackages.clang
libclang
];

cargoLock = {
Expand All @@ -44,10 +48,17 @@ rustPlatform.buildRustPackage rec {
pkg-config
wrapGAppsHook4
rust-bin.nightly."2024-05-10".default
libxkbcommon
llvmPackages.clang-unwrapped
libclang
];

copyLibs = true;

env = {
LIBCLANG_PATH = "${libclang.lib}/lib";
};

postInstall = ''
mkdir -p $HOME/.config/reset
mkdir -p $HOME/.config/reset/plugins
Expand Down

0 comments on commit 839fede

Please sign in to comment.