Skip to content

Commit acb424d

Browse files
committed
More WIP
1 parent 0df084d commit acb424d

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

survey/default.nix

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ let
648648
libXcursor = previous.xorg.libXcursor.overrideAttrs (old: { dontDisableStatic = true; });
649649
libXdmcp = previous.xorg.libXdmcp.overrideAttrs (old: { dontDisableStatic = true; });
650650
libXext = previous.xorg.libXext.overrideAttrs (old: { dontDisableStatic = true; });
651+
libXtst = previous.xorg.libXtst.overrideAttrs (old: { dontDisableStatic = true; });
651652
libXfixes = previous.xorg.libXfixes.overrideAttrs (old: { dontDisableStatic = true; });
652653
libXi = previous.xorg.libXi.overrideAttrs (old: { dontDisableStatic = true; });
653654
libXinerama = previous.xorg.libXinerama.overrideAttrs (old: { dontDisableStatic = true; });
@@ -806,7 +807,8 @@ let
806807

807808
meson-tutorial-gtk = final.callPackage ({
808809
meson, ninja, pkgconfig, gtk3,
809-
pcre,
810+
pcre_static,
811+
zlib_both,
810812
harfbuzz,
811813
libpthreadstubs,
812814
libXdmcp,
@@ -825,7 +827,8 @@ let
825827
nativeBuildInputs = [ meson pkgconfig ninja ];
826828
buildInputs = [
827829
gtk3
828-
pcre
830+
pcre_static
831+
zlib_both
829832
harfbuzz
830833
libpthreadstubs
831834
libXdmcp
@@ -1280,14 +1283,33 @@ let
12801283
# Most likely it is because the `libX*` packages are available once on the top-level
12811284
# namespace (where we override them), and once under `xorg.libX*`, where we don't
12821285
# override them; it seems that `X11` depends on the latter.
1286+
# Note that the addition of `xorg.*` packages to the global
1287+
# package set available to derivation (`callPackage`) arguments
1288+
# is set up here:
1289+
# https://github.com/NixOS/nixpkgs/blob/9a2c7caa43f1cb83b3efd156de35aea85196f32f/pkgs/top-level/splice.nix#L125-L132
1290+
# According to `clever`, the right place to override them should
1291+
# be inside `xorg` and then the top-level ones should be
1292+
# overridden automatically.
12831293
X11 = super.X11.override {
12841294
libX11 = final.libX11;
12851295
libXext = final.libXext;
12861296
libXinerama = final.libXinerama;
12871297
libXrandr = final.libXrandr;
12881298
libXrender = final.libXrender;
12891299
libXScrnSaver = final.libXScrnSaver;
1300+
12901301
};
1302+
xorg = super.xorg.override (old: {
1303+
libX11 = final.libX11;
1304+
libXext = final.libXext;
1305+
libXinerama = final.libXinerama;
1306+
libXrandr = final.libXrandr;
1307+
libXrender = final.libXrender;
1308+
libXScrnSaver = final.libXScrnSaver;
1309+
1310+
libXtst = final.libXtst;
1311+
});
1312+
12911313

12921314
# Note that xmonad links, but it doesn't run, because it tries to open
12931315
# `libgmp.so.3` at run time.

0 commit comments

Comments
 (0)