Created
March 17, 2019 15:34
-
-
Save Rotaerk/4a5aff4d1bdce51b7cff59a6136e70c2 to your computer and use it in GitHub Desktop.
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
{ 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