Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### flake.nix
- {
- description = "my project description";
- inputs.flake-utils.url = "github:numtide/flake-utils";
- outputs = { self, nixpkgs, flake-utils }:
- flake-utils.lib.eachDefaultSystem (system:
- let pkgs = nixpkgs.legacyPackages.${system};
- in { devShell = import ./shell.nix { inherit pkgs; }; });
- }
- ### .envrc
- use flake
- ### shell.nix
- { pkgs ? import <nixpkgs> { } }:
- with pkgs;
- stdenv.mkDerivation {
- name = "programming";
- buildInputs = [
- mesa
- libcxx
- libGL
- driversi686Linux.mesa
- SDL2
- SDL2_image
- glew
- glm
- glfw
- freetype
- freeglut
- ];
- nativeBuildInputs = [ clang-tools cmake gnumake ];
- LD_LIBRARY_PATH = "/run/opengl-driver/lib:/run/opengl-driver-32/lib";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement