Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { pkgs ? import <nixpkgs> {} }:
- with pkgs;
- let
- inherit (lib) makeLibraryPath;
- hs = haskell.packages.ghc865;
- tools = [
- (hs.ghcWithPackages (ps: [ps.OpenGL ps.OpenGLRaw]))
- hs.cabal-install
- hs.ghcid
- pkgs.binutils-unwrapped
- ];
- libraries = [
- assimp
- ];
- libraryPath = "${makeLibraryPath libraries}";
- in
- pkgs.runCommand "shell" {
- buildInputs = tools ++ libraries;
- shellHook = ''
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libraryPath}"
- export LIBRARY_PATH="${libraryPath}"
- '';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement