Skip to content

Commit

Permalink
fix(flake): fix linux development
Browse files Browse the repository at this point in the history
  • Loading branch information
cathaysia committed Sep 8, 2023
1 parent 7140b65 commit e1366f8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,22 @@
{
devShell = pkgs.mkShell {
buildInputs = [
pkgs.iconv
pkgs.taplo
(
pkgs.rust-bin.nightly."2023-07-28".default.override rust_toolchain
)
] ++ lib.lists.optionals isDarwin [
pkgs.iconv
pkgs.darwin.apple_sdk.frameworks.Security
];
shellHook = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${pkgs.iconv.out}/lib
export DYLD_FALLBACK_LIBRARY_PATH=$(rustc --print sysroot)/lib
'';
'' + (if
isDarwin == true then ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${pkgs.iconv.out}/lib
'' else '' '');
};
});
}


0 comments on commit e1366f8

Please sign in to comment.