Skip to content

Commit

Permalink
nix flake w/ zig 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
renerocksai committed May 14, 2023
1 parent a102aab commit fe26364
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,16 @@
self,
nixpkgs,
flake-utils,
zig,
nixgl,
...
} @ inputs: let
overlays = [ nixgl.overlay ];
overlays = [
nixgl.overlay
(final: prev: {
zigpkgs = inputs.zig.packages.${prev.system};
})
];

# Our supported systems are the same supported systems as the Zig binaries
systems = builtins.attrNames inputs.zig.packages;
Expand All @@ -36,7 +42,7 @@
in rec {
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
# zigpkgs.master
zigpkgs."0.9.1"
xorg.libX11
xorg.libX11.dev
xorg.libXcursor
Expand All @@ -45,7 +51,6 @@
xorg.libXrandr
pkgs.gtk3
libGL
zig
neovim
];

Expand All @@ -67,7 +72,7 @@
# nix develop --impure .#nixgl
devShells.nixgl = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
# zigpkgs.master
zigpkgs."0.9.1"
xorg.libX11
xorg.libX11.dev
xorg.libXcursor
Expand All @@ -76,7 +81,6 @@
xorg.libXrandr
pkgs.gtk3
libGL
zig
neovim
pkgs.nixgl.auto.nixGLDefault
];
Expand Down

0 comments on commit fe26364

Please sign in to comment.