Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. { pkgs ? import <nixpkgs> {} }:
  2. with pkgs;
  3. let
  4. inherit (lib) makeLibraryPath;
  5. hs = haskell.packages.ghc865;
  6. tools = [
  7. (hs.ghcWithPackages (ps: [ps.OpenGL ps.OpenGLRaw]))
  8. hs.cabal-install
  9. hs.ghcid
  10. pkgs.binutils-unwrapped
  11. ];
  12. libraries = [
  13. assimp
  14. ];
  15. libraryPath = "${makeLibraryPath libraries}";
  16. in
  17. pkgs.runCommand "shell" {
  18. buildInputs = tools ++ libraries;
  19. shellHook = ''
  20. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libraryPath}"
  21. export LIBRARY_PATH="${libraryPath}"
  22. '';
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement