Skip to content

Commit 4744529

Browse files
committed
survey: allStackageExecutables: Strip down dependency tree
1 parent a8e7027 commit 4744529

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

survey/default.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ let
256256
blacklist = [
257257
# Doesn't build in `normalPkgs.haskellPackages` either
258258
"mercury-api"
259+
# depends on `sbv` -> `openjdk`, which pulls in a huge dependency closure
260+
"crackNum"
259261
# https://github.com/nh2/static-haskell-nix/issues/6#issuecomment-420494800
260262
"sparkle"
261263
];
@@ -777,6 +779,29 @@ let
777779
withGTK3 = false; # needs to be disabled because `withX` is disabled above
778780
systemd = null; # does not build with musl
779781
};
782+
783+
# Disable sphinx for some python packages to not pull in its huge
784+
# dependency tree; it pulls in among others:
785+
# Ruby, Python, Perl, Rust, OpenGL, Xorg, gtk, LLVM.
786+
#
787+
# Which Python packages to override is informed by this dependency tree:
788+
# nix-store -q --tree $(NIX_PATH=nixpkgs=nixpkgs nix-instantiate survey/default.nix -A workingStackageExecutables)
789+
# and searching for `-sphinx`.
790+
python3 = previous.python3.override {
791+
# Careful, we're using a different self and super here!
792+
packageOverrides = finalPython: previousPython: {
793+
794+
fonttools = previousPython.fonttools.override {
795+
sphinx = null;
796+
};
797+
798+
matplotlib = previousPython.matplotlib.override {
799+
sphinx = null;
800+
};
801+
802+
};
803+
};
804+
780805
};
781806

782807

0 commit comments

Comments
 (0)