Skip to content

Commit b459cac

Browse files
committed
nix: Conditionally remove the github-pages dependency
If `buildGitHubPages` is `false`, the dependency shouldn't be included to reduce the build closure size.
1 parent 7c48293 commit b459cac

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ pkgs.stdenvNoCC.mkDerivation rec {
2727
maven
2828
makeWrapper
2929
graphviz
30-
(ruby.withPackages (pkgs: with pkgs; [github-pages jekyll-theme-cayman]))
31-
];
30+
] ++ pkgs.lib.optional buildGitHubPages (ruby.withPackages (pkgs: with pkgs; [
31+
github-pages
32+
jekyll-theme-cayman
33+
]));
3234

3335
mavenRepo = pkgs.stdenv.mkDerivation {
3436
pname = "${pname}-mavenRepo";

0 commit comments

Comments
 (0)