Created
December 28, 2022 21:18
-
-
Save leroycep/e09479bffa198edb44982d8b47ab8614 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": { | |
"flake-utils": { | |
"locked": { | |
"lastModified": 1667395993, | |
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"type": "github" | |
} | |
}, | |
"gitignore": { | |
"inputs": { | |
"nixpkgs": [ | |
"zls-flake", | |
"nixpkgs" | |
] | |
}, | |
"locked": { | |
"lastModified": 1660459072, | |
"narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=", | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"rev": "a20de23b925fd8264fd7fad6454652e142fd7f73", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"type": "github" | |
} | |
}, | |
"known-folders": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1659425144, | |
"narHash": "sha256-xMgdOKwWqBmw7avcioqQQrrPU1MjzlBMtNjqPfOEtDQ=", | |
"owner": "ziglibs", | |
"repo": "known-folders", | |
"rev": "24845b0103e611c108d6bc334231c464e699742c", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "ziglibs", | |
"repo": "known-folders", | |
"type": "github" | |
} | |
}, | |
"nixpkgs": { | |
"locked": { | |
"lastModified": 1672249180, | |
"narHash": "sha256-ipos/gTMHqxS39asqNWEJZ7nXdcTHa0TB0AIZXkGapg=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "e58a7747db96c23b8a977e7c1bbfc5753b81b6fa", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixpkgs-unstable", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"root": { | |
"inputs": { | |
"flake-utils": "flake-utils", | |
"nixpkgs": "nixpkgs", | |
"zig-overlay": "zig-overlay", | |
"zls-flake": "zls-flake" | |
} | |
}, | |
"zig-overlay": { | |
"inputs": { | |
"flake-utils": [ | |
"flake-utils" | |
], | |
"nixpkgs": [ | |
"nixpkgs" | |
] | |
}, | |
"locked": { | |
"lastModified": 1672229276, | |
"narHash": "sha256-7f/zxHRhG3yOvJb6Yk5bVyQt32aiw0lt1Uo295/SoVo=", | |
"owner": "mitchellh", | |
"repo": "zig-overlay", | |
"rev": "d0053fe869019130eb76829ada6fecdbb7b5b129", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "mitchellh", | |
"repo": "zig-overlay", | |
"type": "github" | |
} | |
}, | |
"zls-flake": { | |
"inputs": { | |
"flake-utils": [ | |
"flake-utils" | |
], | |
"gitignore": "gitignore", | |
"known-folders": "known-folders", | |
"nixpkgs": [ | |
"nixpkgs" | |
], | |
"zig-overlay": [ | |
"zig-overlay" | |
] | |
}, | |
"locked": { | |
"lastModified": 1672123677, | |
"narHash": "sha256-2tivV1NR8UG7y/2vJ2rmDZyZO2+I+s0qeSbXCO3R4Kk=", | |
"owner": "zigtools", | |
"repo": "zls", | |
"rev": "61c0981294c52820d185afe41a0965a722c3e314", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "zigtools", | |
"repo": "zls", | |
"type": "github" | |
} | |
} | |
}, | |
"root": "root", | |
"version": 7 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
zls-flake.url = "github:zigtools/zls"; | |
zig-overlay = { | |
url = "github:mitchellh/zig-overlay"; | |
inputs.nixpkgs.follows = "nixpkgs"; | |
inputs.flake-utils.follows = "flake-utils"; | |
}; | |
flake-utils = { | |
url = "github:numtide/flake-utils"; | |
}; | |
zls-flake.inputs = { | |
nixpkgs.follows = "nixpkgs"; | |
zig-overlay.follows = "zig-overlay"; | |
flake-utils.follows = "flake-utils"; | |
}; | |
}; | |
outputs = { self, zig-overlay, nixpkgs, flake-utils, zls-flake }: | |
flake-utils.lib.eachDefaultSystem (system: let | |
pkgs = import nixpkgs { | |
inherit system; | |
overlays = [ zig-overlay.overlays.default ]; | |
}; | |
lib = pkgs.lib; | |
zls = zls-flake.packages.${system}.zls; | |
in rec { | |
devShells.default = pkgs.mkShell { | |
packages = [ | |
pkgs.zigpkgs.master | |
# zls | |
pkgs.wabt | |
pkgs.libsoundio | |
pkgs.pkg-config | |
pkgs.alsa-lib | |
pkgs.git | |
pkgs.pkg-config | |
pkgs.xorg.libX11 | |
pkgs.libxkbcommon | |
pkgs.libGL | |
pkgs.wayland | |
]; | |
LD_LIBRARY_PATH = "${lib.makeLibraryPath [ | |
pkgs.libGL | |
pkgs.vulkan-loader | |
pkgs.wayland | |
pkgs.libxkbcommon | |
]}"; | |
}; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment