Updated flake, removed seperate ZLS install and am just installing from nixpkgs now

This commit is contained in:
Nate Anderson
2025-01-02 10:45:48 -07:00
parent a335d10f9f
commit f2bf87c063
4 changed files with 4 additions and 97 deletions
+3 -6
View File
@@ -2,20 +2,17 @@
description = "Zig flake with ZLS";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.zlsPkg.url = "path:./nix/zls";
outputs = {
flake-utils,
nixpkgs,
zlsPkg,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
};
zls = zlsPkg.defaultPackage.${system};
in {
devShell = pkgs.mkShell rec {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
lldb
SDL2
@@ -28,8 +25,8 @@
zig
zls
];
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
C_INCLUDE_PATH = "${pkgs.SDL2}/include:${pkgs.SDL2_ttf}/include:${pkgs.SDL2_image}/include";
# LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
# C_INCLUDE_PATH = "${pkgs.SDL2}/include:${pkgs.SDL2_ttf}/include:${pkgs.SDL2_image}/include";
};
});
}