mirror of
https://github.com/Theaninova/WanganSunrise.git
synced 2025-12-10 10:36:14 +00:00
46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
flake-utils,
|
|
rust-overlay,
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
overlays = [ (import rust-overlay) ];
|
|
pkgs = import nixpkgs { inherit system overlays; };
|
|
rust-bin = pkgs.rust-bin.stable.latest.default.override {
|
|
extensions = [
|
|
"rust-src"
|
|
"rust-std"
|
|
"clippy"
|
|
"rust-analyzer"
|
|
];
|
|
};
|
|
in
|
|
{
|
|
devShell = pkgs.mkShell rec {
|
|
nativeBuildInputs = with pkgs; [
|
|
rust-bin
|
|
pkg-config
|
|
];
|
|
buildInputs = with pkgs; [
|
|
udev
|
|
alsa-lib
|
|
vulkan-loader
|
|
libxkbcommon
|
|
wayland
|
|
];
|
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
|
|
};
|
|
}
|
|
);
|
|
}
|