mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
xorg.{libICE,libSM}: split dev and doc outputs
This commit is contained in:
parent
783c40eb68
commit
fa6ddd7fa6
3 changed files with 13 additions and 7 deletions
|
@ -33,10 +33,10 @@ stdenv.mkDerivation rec {
|
|||
|
||||
# These variables are used by configure to find some dependencies.
|
||||
SEARCH_INCLUDE =
|
||||
"${libXinerama}/include ${libSM}/include ${libXxf86vm}/include";
|
||||
"${libXinerama.dev}/include ${libSM.dev}/include ${libXxf86vm.dev}/include";
|
||||
SEARCH_LIB =
|
||||
"${libXinerama}/lib ${libSM}/lib ${libXxf86vm}/lib "
|
||||
+ optionalString withMesa "${mesa}/lib ";
|
||||
"${libXinerama.out}/lib ${libSM.out}/lib ${libXxf86vm.out}/lib "
|
||||
+ optionalString withMesa "${mesa.out}/lib ";
|
||||
|
||||
# Work around a bug in configure.
|
||||
NIX_CFLAGS_COMPILE = "-DHAVE_X11_XLIB_H=1";
|
||||
|
|
|
@ -140,6 +140,10 @@ in
|
|||
propagatedBuildInputs = [ xorg.fixesproto ];
|
||||
};
|
||||
|
||||
libICE = attrs: attrs // {
|
||||
outputs = [ "dev" "out" "doc" ];
|
||||
};
|
||||
|
||||
libXcomposite = attrs: attrs // {
|
||||
outputs = [ "dev" "out" "man" ];
|
||||
propagatedBuildInputs = [ xorg.libXfixes ];
|
||||
|
@ -196,8 +200,10 @@ in
|
|||
propagatedBuildInputs = [xorg.libXrender];
|
||||
};
|
||||
|
||||
libSM = attrs: attrs
|
||||
// { propagatedBuildInputs = [ xorg.libICE ]; };
|
||||
libSM = attrs: attrs // {
|
||||
outputs = [ "dev" "out" "doc" ];
|
||||
propagatedBuildInputs = [ xorg.libICE ];
|
||||
};
|
||||
|
||||
libXrender = attrs: attrs // {
|
||||
outputs = [ "dev" "out" "doc" ];
|
||||
|
|
|
@ -13478,7 +13478,7 @@ let
|
|||
|
||||
patchPhase = ''
|
||||
cp "${x_ignore_nofocus}/cpp/linux-specific/"* .
|
||||
substituteInPlace x_ignore_nofocus.c --replace "/usr/lib/libX11.so.6" "${pkgs.xorg.libX11}/lib/libX11.so.6"
|
||||
substituteInPlace x_ignore_nofocus.c --replace "/usr/lib/libX11.so.6" "${pkgs.xorg.libX11.out}/lib/libX11.so.6"
|
||||
gcc -c -fPIC x_ignore_nofocus.c -o x_ignore_nofocus.o
|
||||
gcc -shared \
|
||||
-Wl,${if stdenv.isDarwin then "-install_name" else "-soname"},x_ignore_nofocus.so \
|
||||
|
@ -14692,7 +14692,7 @@ let
|
|||
# I don't know why I need to add these libraries. Shouldn't they
|
||||
# be part of wxPython?
|
||||
postInstall = ''
|
||||
libspaths=${pkgs.xorg.libSM}/lib:${pkgs.xorg.libXScrnSaver}/lib
|
||||
libspaths=${with pkgs.xorg; lib.makeLibraryPath [ libSM libXScrnSaver ]}
|
||||
wrapProgram $out/bin/taskcoach.py \
|
||||
--prefix LD_LIBRARY_PATH : $libspaths
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue