Skip to content

Instantly share code, notes, and snippets.

@Rotaerk
Created March 17, 2019 15:34
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 Rotaerk/4a5aff4d1bdce51b7cff59a6136e70c2 to your computer and use it in GitHub Desktop.
Save Rotaerk/4a5aff4d1bdce51b7cff59a6136e70c2 to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
inherit (lib) makeLibraryPath;
hs = haskell.packages.ghc863;
tools = [
hs.ghc
hs.cabal-install
hs.ghcid
vulkan-tools
glslang
];
libraries = [
vulkan-loader
vulkan-validation-layers
libGL
xorg.libX11
xorg.libXcursor
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXinerama
xorg.libXrandr
xorg.libXxf86vm
];
in
pkgs.runCommand "shell" {
buildInputs = tools ++ libraries;
shellHook = ''
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${makeLibraryPath libraries}"
'';
} ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment