evoke-rs/flake.nix

44 lines
772 B
Nix
Raw Normal View History

2024-08-17 18:20:42 +00:00
{
description = "evoke";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ self, ... }:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.flake-parts.flakeModules.easyOverlay
];
systems = [ "x86_64-linux" ];
perSystem = {
system,
pkgs,
config,
...
}:
{
devShells.default = pkgs.mkShell rec {
buildInputs = [
pkgs.libxkbcommon
pkgs.vulkan-loader
pkgs.wayland
];
packages = [
pkgs.cargo
pkgs.clippy
pkgs.gcc
];
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";
RUST_BACKTRACE = "true";
};
};
};
}