Skip to content

Commit

Permalink
Update nix
Browse files Browse the repository at this point in the history
  • Loading branch information
Riey committed Jul 30, 2024
1 parent eca3776 commit a741110
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 16 deletions.
6 changes: 3 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let
testArgs = if debug then "" else "--release";
in
with pkgs;
llvmPackages_14.stdenv.mkDerivation rec {
llvmPackages_18.stdenv.mkDerivation rec {
name = "kime";
src = ./.;
buildInputs = deps.kimeBuildInputs;
Expand All @@ -17,9 +17,9 @@ llvmPackages_14.stdenv.mkDerivation rec {
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
#sha256 = "0000000000000000000000000000000000000000000000000000";
sha256 = "sha256-/o9b7YvrpV+IujkllFWAz6Mg4CbS9BInF8antfZ0Vsw=";
sha256 = "sha256-hlTxyaE/300CBGIJtFzIh6CT5PcmmqWt8CN428sr2U8=";
};
LIBCLANG_PATH = "${pkgs.llvmPackages_14.libclang.lib}/lib";
LIBCLANG_PATH = "${pkgs.llvmPackages_18.libclang.lib}/lib";
dontUseCmakeConfigure = true;
dontWrapQtApps = true;
buildPhase = if debug then "bash scripts/build.sh -ad" else "bash scripts/build.sh -ar";
Expand Down
30 changes: 24 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
description = "A very basic flake";
description = "Korean IME";

inputs = {
nixpkgs.url = github:NixOS/nixpkgs;
Expand Down
6 changes: 3 additions & 3 deletions nix/deps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ with pkgs;
kimeNativeBuildInputs = [
python3 # xcb 0.9.0
pkg-config
llvmPackages_14.clang
llvmPackages_14.libclang.lib
llvmPackages_14.bintools
llvmPackages_18.clang
llvmPackages_18.libclang.lib
llvmPackages_18.bintools
rustc cargo
cmake
extra-cmake-modules
Expand Down
6 changes: 3 additions & 3 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}:
let
deps = import ./nix/deps.nix { pkgs = pkgs; };
stdenv = pkgs.llvmPackages_14.stdenv;
stdenv = pkgs.llvmPackages_18.stdenv;
mkShell = (pkgs.mkShell.override { stdenv = stdenv; });
in
mkShell {
Expand All @@ -14,10 +14,10 @@ mkShell {
nativeBuildInputs = deps.kimeNativeBuildInputs ++ (with pkgs; [
rustfmt
gnome.gedit
llvmPackages_14.lldb
llvmPackages_18.lldb
]);
CMAKE_EXPORT_COMPILE_COMMANDS = 1;
LIBCLANG_PATH = "${pkgs.llvmPackages_14.libclang.lib}/lib";
LIBCLANG_PATH = "${pkgs.llvmPackages_18.libclang.lib}/lib";
LD_LIBRARY_PATH = "./target/debug:${pkgs.wayland}/lib:${pkgs.libGL}/lib:${pkgs.libxkbcommon}/lib";
G_MESSAGES_DEBUG = "kime";
GTK_IM_MODULE = "kime";
Expand Down

0 comments on commit a741110

Please sign in to comment.