Skip to content

Commit 2da09f1

Browse files
authored
Merge pull request #93 from CopeFiend/update_nix_flakes_doc
Update "Installation and Project Creation" chapter
2 parents 301a129 + dcd78f1 commit 2da09f1

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

src/beginning/scripting.md renamed to src/beginning/installation_and_project_creation.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,24 @@ For NixOS, run `nix develop` from the root of your project to open a shell with
6363
{
6464
devShells = forAllSystems ({ pkgs }: with pkgs; {
6565
default = mkShell rec {
66-
buildInputs = [
66+
nativeBuildInputs = [
67+
pkg-config
6768
rust-bin.stable.latest.default
69+
];
6870
69-
pkg-config
70-
xorg.libxcb
71+
buildInputs = [
72+
libx11
73+
libxcb
7174
alsa-lib
7275
wayland
7376
libxkbcommon
7477
libGL
7578
];
76-
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
79+
80+
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
81+
82+
# Remove this if you don't need LSP support
83+
RUST_SRC_PATH = "${rust-bin.stable.latest.rust-src}/lib/rustlib/src/rust/library";
7784
};
7885
});
7986
};

0 commit comments

Comments
 (0)