Advertisement
Guest User

shell.nix

a guest
Jan 4th, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. ### flake.nix
  2.  
  3. {
  4. description = "my project description";
  5.  
  6. inputs.flake-utils.url = "github:numtide/flake-utils";
  7.  
  8. outputs = { self, nixpkgs, flake-utils }:
  9. flake-utils.lib.eachDefaultSystem (system:
  10. let pkgs = nixpkgs.legacyPackages.${system};
  11. in { devShell = import ./shell.nix { inherit pkgs; }; });
  12. }
  13.  
  14. ### .envrc
  15.  
  16. use flake
  17.  
  18. ### shell.nix
  19.  
  20. { pkgs ? import <nixpkgs> { } }:
  21. with pkgs;
  22. stdenv.mkDerivation {
  23. name = "programming";
  24. buildInputs = [
  25. mesa
  26. libcxx
  27. libGL
  28. driversi686Linux.mesa
  29. SDL2
  30. SDL2_image
  31. glew
  32. glm
  33. glfw
  34. freetype
  35. freeglut
  36. ];
  37.  
  38. nativeBuildInputs = [ clang-tools cmake gnumake ];
  39.  
  40. LD_LIBRARY_PATH = "/run/opengl-driver/lib:/run/opengl-driver-32/lib";
  41. }
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement