mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
work on making xquartz buildable in a pure environment
This commit is contained in:
parent
724e243159
commit
76a6539829
@ -1,4 +1,4 @@
|
||||
{ stdenv, lib, fetchurl, xorg, pixman, pkgconfig }:
|
||||
{ stdenv, lib, fetchurl, xorg, pixman, pkgconfig, Foundation, libobjc, Xplugin, CF }:
|
||||
|
||||
let version = "1.3.1";
|
||||
in stdenv.mkDerivation {
|
||||
@ -19,7 +19,13 @@ in stdenv.mkDerivation {
|
||||
xorg.libXext
|
||||
pixman
|
||||
pkgconfig
|
||||
CF
|
||||
Foundation
|
||||
libobjc
|
||||
Xplugin
|
||||
];
|
||||
NIX_LDFLAGS = stdenv.lib.optional stdenv.isDarwin
|
||||
"/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation";
|
||||
meta = with lib; {
|
||||
license = licenses.apsl20;
|
||||
platforms = platforms.darwin;
|
||||
|
@ -324,7 +324,11 @@ in
|
||||
'';
|
||||
passthru.version = version; # needed by virtualbox guest additions
|
||||
} else {
|
||||
buildInputs = commonBuildInputs ++ [ args.bootstrap_cmds args.automake args.autoconf ];
|
||||
buildInputs = commonBuildInputs ++ [
|
||||
args.bootstrap_cmds args.automake args.autoconf
|
||||
args.CF args.apple_sdk.libs.Xplugin args.apple_sdk.frameworks.Foundation
|
||||
args.libobjc args.apple_sdk.frameworks.Cocoa
|
||||
];
|
||||
propagatedBuildInputs = commonPropagatedBuildInputs ++ [
|
||||
libAppleWM applewmproto
|
||||
];
|
||||
|
@ -109,8 +109,7 @@ in stdenv.mkDerivation {
|
||||
|
||||
cp ${installer} $out/bin/xquartz-install
|
||||
|
||||
rm -r $out/LaunchAgents
|
||||
rm -r $out/LaunchDaemons
|
||||
rm -rf $out/LaunchAgents $out/LaunchDaemons
|
||||
|
||||
fontsConfPath=$out/etc/X11/fonts.conf
|
||||
cp ${fontsConf} $fontsConfPath
|
||||
|
@ -9246,14 +9246,19 @@ let
|
||||
zookeeper_mt = callPackage ../development/libraries/zookeeper_mt { };
|
||||
|
||||
xquartz = callPackage ../servers/x11/xquartz { };
|
||||
quartz-wm = callPackage ../servers/x11/quartz-wm { stdenv = clangStdenv; };
|
||||
quartz-wm = callPackage ../servers/x11/quartz-wm {
|
||||
stdenv = clangStdenv;
|
||||
inherit (darwin.apple_sdk.frameworks) Foundation;
|
||||
inherit (darwin.apple_sdk.libs) Xplugin;
|
||||
inherit (darwin) libobjc CF;
|
||||
};
|
||||
|
||||
xorg = recurseIntoAttrs (lib.callPackagesWith pkgs ../servers/x11/xorg/default.nix {
|
||||
inherit clangStdenv fetchurl fetchgit fetchpatch stdenv pkgconfig intltool freetype fontconfig
|
||||
libxslt expat libpng zlib perl mesa_drivers spice_protocol
|
||||
dbus libuuid openssl gperf m4 libevdev tradcpp libinput mcpp makeWrapper autoreconfHook
|
||||
autoconf automake libtool xmlto asciidoc flex bison python mtdev pixman;
|
||||
inherit (darwin) apple_sdk;
|
||||
inherit (darwin) apple_sdk libobjc CF;
|
||||
bootstrap_cmds = if stdenv.isDarwin then darwin.bootstrap_cmds else null;
|
||||
mesa = mesa_noglu;
|
||||
udev = if stdenv.isLinux then udev else null;
|
||||
|
Loading…
Reference in New Issue
Block a user