From 0a08e401d26785638c09ce378c282924e3ddbaf9 Mon Sep 17 00:00:00 2001 From: yuuko Date: Sun, 15 Dec 2024 06:12:40 -0800 Subject: pkgs: add some texture authoring tools --- srcds-pkgs/fakegl.nix | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 srcds-pkgs/fakegl.nix (limited to 'srcds-pkgs/fakegl.nix') diff --git a/srcds-pkgs/fakegl.nix b/srcds-pkgs/fakegl.nix new file mode 100644 index 0000000..e16e8f1 --- /dev/null +++ b/srcds-pkgs/fakegl.nix @@ -0,0 +1,7 @@ +{ libGL, runCommand }: +runCommand "fakegl" {} '' + mkdir -p $out/include/{GL,OpenGL} + framework=${libGL}/Library/Frameworks/OpenGL.framework/Headers + ln -s $framework/gl.h $out/include/GL/ + ln -s $framework/{gl{ext,types},OpenGLAvailability}.h $out/include/OpenGL/ +'' -- cgit v1.2.3