Skip to content

Instantly share code, notes, and snippets.

@podocarp
Created December 13, 2021 03:16
Show Gist options
  • Save podocarp/12130d7c04923af84ac221f76f26da3a to your computer and use it in GitHub Desktop.
Save podocarp/12130d7c04923af84ac221f76f26da3a to your computer and use it in GitHub Desktop.
Nix shell with opengl dependencies
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "env";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorg.libX11
xorg.libX11.dev
xorg.libXi
xorg.libXext
libGL
];
LD_LIBRARY_PATH = "${lib.makeLibraryPath [ libGL ]}:$LD_LIBRARY_PATH";
}
@podocarp
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment