{
description = "Description for the project";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { config, self', inputs', pkgs, system, ... }:
let
libPath = with pkgs; lib.makeLibraryPath [
libGL
wayland
libxkbcommon
];
in
{
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [inputs.rust-overlay.overlays.default];
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
rust-bin.stable.latest.default
bacon
];
LD_LIBRARY_PATH = libPath;
};
};
};
}