xorg: split outputs of various libs

+33 -3
+1 -1
pkgs/applications/graphics/xfig/default.nix
··· 16 16 17 17 nativeBuildInputs = [ imake makeWrapper ]; 18 18 19 - NIX_CFLAGS_COMPILE = "-I${libXpm}/include/X11"; 19 + NIX_CFLAGS_COMPILE = "-I${libXpm.dev}/include/X11"; 20 20 21 21 patches = 22 22 let
+2
pkgs/development/libraries/libsoup/default.nix
··· 18 18 patchShebangs libsoup/ 19 19 ''; 20 20 21 + outputs = [ "dev" "out" ]; 22 + 21 23 buildInputs = libintlOrEmpty ++ [ intltool python sqlite ]; 22 24 nativeBuildInputs = [ pkgconfig ]; 23 25 propagatedBuildInputs = [ glib libxml2 gobjectIntrospection ]
+1 -1
pkgs/games/micropolis/default.nix
··· 20 20 preConfigure = 21 21 '' 22 22 cd src 23 - sed -i "s@^CFLAGS.*\$@&\nCFLAGS += -I${libXpm}/include/X11@" tk/makefile 23 + sed -i "s@^CFLAGS.*\$@&\nCFLAGS += -I${libXpm.dev}/include/X11@" tk/makefile 24 24 sed -i "s@^INCLUDES.*\$@&\n\t-I$PWD/tcl \\\\@" sim/makefile 25 25 ''; 26 26
+1 -1
pkgs/games/xsokoban/default.nix
··· 21 21 22 22 preConfigure = a.fullDepEntry ('' 23 23 sed -e 's/getline/my_getline/' -i score.c 24 - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.libXpm}/include/X11" 24 + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.libXpm.dev}/include/X11" 25 25 for i in $NIX_CFLAGS_COMPILE; do echo $i; ls ''${i#-I}; done 26 26 chmod a+rw config.h 27 27 echo '#define HERE "@nixos-packaged"' >> config.h
+28
pkgs/servers/x11/xorg/overrides.nix
··· 106 106 }; 107 107 108 108 libXfont = attrs: attrs // { 109 + outputs = [ "dev" "out" ]; 109 110 propagatedBuildInputs = [ args.freetype ]; # propagate link reqs. like bzip2 110 111 # prevents "misaligned_stack_error_entering_dyld_stub_binder" 111 112 configureFlags = lib.optionals isDarwin [ ··· 150 151 }; 151 152 152 153 libXaw = attrs: attrs // { 154 + outputs = [ "dev" "out" "doc" ]; # just dev-doc 153 155 propagatedBuildInputs = [ xorg.libXmu ]; 154 156 }; 155 157 ··· 210 212 preConfigure = setMalloc0ReturnsNullCrossCompiling; 211 213 }; 212 214 215 + libXres = attrs: attrs // { 216 + outputs = [ "dev" "out" "doc" ]; # just dev-doc 217 + }; 218 + 219 + libXv = attrs: attrs // { 220 + outputs = [ "dev" "out" "doc" ]; # just dev-doc 221 + }; 222 + 213 223 libXvMC = attrs: attrs 214 224 // { buildInputs = attrs.buildInputs ++ [xorg.renderproto]; }; 215 225 216 226 libXpm = attrs: attrs // { 227 + outputs = [ "dev" "out" "bin" ]; # tiny man in $bin 217 228 patchPhase = "sed -i '/USE_GETTEXT_TRUE/d' sxpm/Makefile.in cxpm/Makefile.in"; 218 229 }; 219 230 ··· 224 235 outputs = [ "dev" "out" ]; # mainly to avoid propagation 225 236 }; 226 237 238 + libxshmfence = attrs: attrs // { 239 + outputs = [ "dev" "out" ]; # mainly to avoid propagation 240 + }; 241 + 227 242 setxkbmap = attrs: attrs // { 228 243 postInstall = 229 244 '' ··· 248 263 meta.maintainers = [ stdenv.lib.maintainers.lovek323 ]; 249 264 }; 250 265 266 + xcbutilimage = attrs: attrs // { 267 + outputs = [ "dev" "out" ]; # mainly to get rid of propagating others 268 + }; 269 + 251 270 xcbutilkeysyms = attrs: attrs // { 271 + outputs = [ "dev" "out" ]; # mainly to get rid of propagating others 272 + }; 273 + 274 + xcbutilrenderutil = attrs: attrs // { 275 + outputs = [ "dev" "out" ]; # mainly to get rid of propagating others 276 + }; 277 + 278 + xcbutilwm = attrs: attrs // { 252 279 outputs = [ "dev" "out" ]; # mainly to get rid of propagating others 253 280 }; 254 281 ··· 361 388 in 362 389 if (!isDarwin) 363 390 then { 391 + outputs = [ "dev" "out" ]; 364 392 buildInputs = [ makeWrapper ] ++ commonBuildInputs; 365 393 propagatedBuildInputs = [ libpciaccess ] ++ commonPropagatedBuildInputs ++ lib.optionals stdenv.isLinux [ 366 394 args.udev