f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
30 lines
575 B
Nix
30 lines
575 B
Nix
{
|
|
frameworks,
|
|
darwin-stubs,
|
|
stdenvNoCC,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "apple-lib-Xplugin";
|
|
inherit (darwin-stubs) version;
|
|
|
|
dontUnpack = true;
|
|
dontBuild = true;
|
|
|
|
propagatedBuildInputs = with frameworks; [
|
|
OpenGL
|
|
ApplicationServices
|
|
Carbon
|
|
IOKit
|
|
CoreGraphics
|
|
CoreServices
|
|
CoreText
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/include $out/lib
|
|
cp "${darwin-stubs}/include/Xplugin.h" $out/include/Xplugin.h
|
|
cp ${darwin-stubs}/usr/lib/libXplugin.1.tbd $out/lib
|
|
ln -s libXplugin.1.tbd $out/lib/libXplugin.tbd
|
|
'';
|
|
}
|