Created
November 15, 2023 23:51
-
-
Save tfmoraes/9bbc481e2bef3d5cb2cf139423cd8cb5 to your computer and use it in GitHub Desktop.
shell.nix to floem
This file contains hidden or 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
let | |
pkgs = import <nixpkgs> { }; | |
fenix = pkgs.callPackage "${ | |
fetchTarball "https://github.com/nix-community/fenix/archive/main.tar.gz" | |
}" | |
{ }; | |
in | |
pkgs.mkShell { | |
buildInputs = [ | |
pkgs.wayland | |
pkgs.wayland-protocols | |
pkgs.xorg.libxcb | |
pkgs.xorg.libX11 | |
pkgs.xorg.libXcursor | |
pkgs.xorg.libXi | |
pkgs.xorg.libXrandr | |
pkgs.libxkbcommon | |
pkgs.vulkan-headers | |
pkgs.vulkan-tools | |
pkgs.vulkan-headers | |
pkgs.vulkan-loader | |
pkgs.vulkan-validation-layers | |
pkgs.libGL | |
pkgs.pkg-config | |
(with fenix; | |
combine | |
[ | |
minimal.rustc | |
minimal.cargo | |
]) | |
]; | |
LD_LIBRARY_PATH = with pkgs; | |
lib.makeLibraryPath [ | |
libxkbcommon # keyboard | |
libGL | |
alsaLib # sound | |
vulkan-headers | |
vulkan-loader | |
# wayland | |
wayland | |
# xstuff | |
xorg.libX11 | |
xorg.libXcursor | |
xorg.libXi | |
xorg.libXrandr | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment