xorg: split outputs of various libs

This commit is contained in:
Vladimír Čunát 2015-10-13 21:51:53 +02:00
parent 8c25f3ecaa
commit e25da7e5c8
5 changed files with 33 additions and 3 deletions

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ imake makeWrapper ]; nativeBuildInputs = [ imake makeWrapper ];
NIX_CFLAGS_COMPILE = "-I${libXpm}/include/X11"; NIX_CFLAGS_COMPILE = "-I${libXpm.dev}/include/X11";
patches = patches =
let let

View File

@ -18,6 +18,8 @@ stdenv.mkDerivation {
patchShebangs libsoup/ patchShebangs libsoup/
''; '';
outputs = [ "dev" "out" ];
buildInputs = libintlOrEmpty ++ [ intltool python sqlite ]; buildInputs = libintlOrEmpty ++ [ intltool python sqlite ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ glib libxml2 gobjectIntrospection ] propagatedBuildInputs = [ glib libxml2 gobjectIntrospection ]

View File

@ -20,7 +20,7 @@ stdenv.mkDerivation {
preConfigure = preConfigure =
'' ''
cd src cd src
sed -i "s@^CFLAGS.*\$@&\nCFLAGS += -I${libXpm}/include/X11@" tk/makefile sed -i "s@^CFLAGS.*\$@&\nCFLAGS += -I${libXpm.dev}/include/X11@" tk/makefile
sed -i "s@^INCLUDES.*\$@&\n\t-I$PWD/tcl \\\\@" sim/makefile sed -i "s@^INCLUDES.*\$@&\n\t-I$PWD/tcl \\\\@" sim/makefile
''; '';

View File

@ -21,7 +21,7 @@ rec {
preConfigure = a.fullDepEntry ('' preConfigure = a.fullDepEntry (''
sed -e 's/getline/my_getline/' -i score.c sed -e 's/getline/my_getline/' -i score.c
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.libXpm}/include/X11" export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.libXpm.dev}/include/X11"
for i in $NIX_CFLAGS_COMPILE; do echo $i; ls ''${i#-I}; done for i in $NIX_CFLAGS_COMPILE; do echo $i; ls ''${i#-I}; done
chmod a+rw config.h chmod a+rw config.h
echo '#define HERE "@nixos-packaged"' >> config.h echo '#define HERE "@nixos-packaged"' >> config.h

View File

@ -106,6 +106,7 @@ in
}; };
libXfont = attrs: attrs // { libXfont = attrs: attrs // {
outputs = [ "dev" "out" ];
propagatedBuildInputs = [ args.freetype ]; # propagate link reqs. like bzip2 propagatedBuildInputs = [ args.freetype ]; # propagate link reqs. like bzip2
# prevents "misaligned_stack_error_entering_dyld_stub_binder" # prevents "misaligned_stack_error_entering_dyld_stub_binder"
configureFlags = lib.optionals isDarwin [ configureFlags = lib.optionals isDarwin [
@ -150,6 +151,7 @@ in
}; };
libXaw = attrs: attrs // { libXaw = attrs: attrs // {
outputs = [ "dev" "out" "doc" ]; # just dev-doc
propagatedBuildInputs = [ xorg.libXmu ]; propagatedBuildInputs = [ xorg.libXmu ];
}; };
@ -210,10 +212,19 @@ in
preConfigure = setMalloc0ReturnsNullCrossCompiling; preConfigure = setMalloc0ReturnsNullCrossCompiling;
}; };
libXres = attrs: attrs // {
outputs = [ "dev" "out" "doc" ]; # just dev-doc
};
libXv = attrs: attrs // {
outputs = [ "dev" "out" "doc" ]; # just dev-doc
};
libXvMC = attrs: attrs libXvMC = attrs: attrs
// { buildInputs = attrs.buildInputs ++ [xorg.renderproto]; }; // { buildInputs = attrs.buildInputs ++ [xorg.renderproto]; };
libXpm = attrs: attrs // { libXpm = attrs: attrs // {
outputs = [ "dev" "out" "bin" ]; # tiny man in $bin
patchPhase = "sed -i '/USE_GETTEXT_TRUE/d' sxpm/Makefile.in cxpm/Makefile.in"; patchPhase = "sed -i '/USE_GETTEXT_TRUE/d' sxpm/Makefile.in cxpm/Makefile.in";
}; };
@ -224,6 +235,10 @@ in
outputs = [ "dev" "out" ]; # mainly to avoid propagation outputs = [ "dev" "out" ]; # mainly to avoid propagation
}; };
libxshmfence = attrs: attrs // {
outputs = [ "dev" "out" ]; # mainly to avoid propagation
};
setxkbmap = attrs: attrs // { setxkbmap = attrs: attrs // {
postInstall = postInstall =
'' ''
@ -248,10 +263,22 @@ in
meta.maintainers = [ stdenv.lib.maintainers.lovek323 ]; meta.maintainers = [ stdenv.lib.maintainers.lovek323 ];
}; };
xcbutilimage = attrs: attrs // {
outputs = [ "dev" "out" ]; # mainly to get rid of propagating others
};
xcbutilkeysyms = attrs: attrs // { xcbutilkeysyms = attrs: attrs // {
outputs = [ "dev" "out" ]; # mainly to get rid of propagating others outputs = [ "dev" "out" ]; # mainly to get rid of propagating others
}; };
xcbutilrenderutil = attrs: attrs // {
outputs = [ "dev" "out" ]; # mainly to get rid of propagating others
};
xcbutilwm = attrs: attrs // {
outputs = [ "dev" "out" ]; # mainly to get rid of propagating others
};
xf86inputevdev = attrs: attrs // { xf86inputevdev = attrs: attrs // {
preBuild = "sed -e '/motion_history_proc/d; /history_size/d;' -i src/*.c"; preBuild = "sed -e '/motion_history_proc/d; /history_size/d;' -i src/*.c";
installFlags = "sdkdir=\${out}/include/xorg"; installFlags = "sdkdir=\${out}/include/xorg";
@ -361,6 +388,7 @@ in
in in
if (!isDarwin) if (!isDarwin)
then { then {
outputs = [ "dev" "out" ];
buildInputs = [ makeWrapper ] ++ commonBuildInputs; buildInputs = [ makeWrapper ] ++ commonBuildInputs;
propagatedBuildInputs = [ libpciaccess ] ++ commonPropagatedBuildInputs ++ lib.optionals stdenv.isLinux [ propagatedBuildInputs = [ libpciaccess ] ++ commonPropagatedBuildInputs ++ lib.optionals stdenv.isLinux [
args.udev args.udev