Skip to content

Commit 313692c

Browse files
committed
Merge pull request #143 from VariantSync/nix-improvements
2 parents 7c48293 + 37ea216 commit 313692c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

default.nix

Lines changed: 5 additions & 3 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";
@@ -95,7 +97,7 @@ pkgs.stdenvNoCC.mkDerivation rec {
9597
local jar="$out/share/java/DiffDetective/DiffDetective.jar"
9698
install -Dm644 "target/diffdetective-${version}-jar-with-dependencies.jar" "$jar"
9799
makeWrapper "${pkgs.jdk}/bin/java" "$out/bin/DiffDetective" --add-flags "-cp \"$jar\"" \
98-
--prefix PATH : "${pkgs.graphviz}"
100+
--prefix PATH : "${pkgs.graphviz}/bin"
99101
100102
${
101103
if buildGitHubPages

0 commit comments

Comments
 (0)