depot/pkgs/os-specific/darwin/native-x11-and-opengl/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

14 lines
412 B
Nix

{ stdenv, writeScript }:
stdenv.mkDerivation rec {
name = "darwin-native-x11-and-opengl";
builder = writeScript "${name}-builder.sh" ''
/bin/mkdir -p $out
/bin/mkdir $out/lib
/bin/ln -sv /usr/X11/lib/{*.dylib,X11,xorg} $out/lib
/bin/mkdir $out/lib/pkgconfig
/bin/ln -sv /usr/X11/lib/pkgconfig/{x*.pc,gl*.pc} $out/lib/pkgconfig
/bin/ln -sv /usr/X11/{bin,include,share} $out/
'';
}