summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/native-x11-and-opengl
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-01-30 14:52:53 +0100
committerPeter Simons <simons@cryp.to>2013-01-30 14:53:04 +0100
commite5b51648b1ccb218f83c5310a3b6b00ed3bdc581 (patch)
tree247d9c6c6160d7eea8cf413331e343f3f69dc133 /pkgs/os-specific/darwin/native-x11-and-opengl
parent72cc82d49a2fe5cfba75f3ebed6772008889a115 (diff)
Move "darwin-native-x11-and-opengl" package into the "os-specific" hierarchy.
Diffstat (limited to 'pkgs/os-specific/darwin/native-x11-and-opengl')
-rw-r--r--pkgs/os-specific/darwin/native-x11-and-opengl/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/native-x11-and-opengl/default.nix b/pkgs/os-specific/darwin/native-x11-and-opengl/default.nix
new file mode 100644
index 0000000000000..cee03741dce6b
--- /dev/null
+++ b/pkgs/os-specific/darwin/native-x11-and-opengl/default.nix
@@ -0,0 +1,12 @@
+{ stdenv, writeScript }:
+
+assert stdenv.isDarwin;
+
+stdenv.mkDerivation rec {
+  name = "darwin-native-x11-and-opengl";
+
+  builder = writeScript "${name}-builder.sh" ''
+    /bin/mkdir -p $out
+    /bin/ln -sv /usr/X11/{bin,lib,include,share} $out/
+  '';
+}