-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will make it far easier to get started with eframe/egui. Simply running the following command will (hopefully) set up a working environment: `nix --experimental-features 'nix-command flakes' develop` (if Nix is installed)
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
description = "eframe devShell"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
rust-overlay.url = "github:oxalica/rust-overlay"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
overlays = [ (import rust-overlay) ]; | ||
pkgs = import nixpkgs { inherit system overlays; }; | ||
in with pkgs; { | ||
devShells.default = mkShell rec { | ||
buildInputs = [ | ||
# Rust | ||
rust-bin.stable.latest.default | ||
trunk | ||
|
||
# misc. libraries | ||
openssl | ||
pkgconfig | ||
|
||
# GUI libs | ||
libxkbcommon | ||
libGL | ||
fontconfig | ||
|
||
# wayland libraries | ||
wayland | ||
|
||
# x11 libraries | ||
xorg.libXcursor | ||
xorg.libXrandr | ||
xorg.libXi | ||
xorg.libX11 | ||
|
||
]; | ||
|
||
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}"; | ||
}; | ||
}); | ||
} |