mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
143978a477
linux: readd assertion
15 lines
412 B
Nix
15 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/
|
|
'';
|
|
}
|