Skip to content

Instantly share code, notes, and snippets.

@tfmoraes
Created November 15, 2023 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tfmoraes/9bbc481e2bef3d5cb2cf139423cd8cb5 to your computer and use it in GitHub Desktop.
Save tfmoraes/9bbc481e2bef3d5cb2cf139423cd8cb5 to your computer and use it in GitHub Desktop.
shell.nix to floem
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