scaffholding
This commit is contained in:
commit
9b822cedc8
11 changed files with 305 additions and 0 deletions
47
flake.nix
Normal file
47
flake.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
description = "Rust flake";
|
||||
inputs =
|
||||
{
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; # or whatever vers
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, rust-overlay, ... }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
overlays = [ (import rust-overlay) ];
|
||||
pkgs = import nixpkgs {
|
||||
inherit system overlays;
|
||||
};
|
||||
in
|
||||
{
|
||||
devShell = pkgs.mkShell rec {
|
||||
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";
|
||||
packages = with pkgs; [
|
||||
(rust-bin.selectLatestNightlyWith (toolchain: toolchain.default))
|
||||
gcc
|
||||
];
|
||||
buildInputs = with pkgs; [
|
||||
libdisplay-info
|
||||
libgbm
|
||||
#mesa
|
||||
libinput
|
||||
pixman
|
||||
seatd
|
||||
udev
|
||||
libxkbcommon
|
||||
wayland
|
||||
wayland.dev
|
||||
wayland-protocols
|
||||
libGL
|
||||
vulkan-headers vulkan-loader
|
||||
vulkan-tools vulkan-tools-lunarg
|
||||
vulkan-extension-layer
|
||||
vulkan-validation-layers # don't need them *strictly* but immensely helpful
|
||||
#libglvnd
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue